2006-10-11 18:21:20

by Dave Jones

[permalink] [raw]
Subject: x86-64 mmconfig missing printk levels.

Trivial bits..

Signed-off-by: Dave Jones <[email protected]>

--- local-git/arch/x86_64/pci/mmconfig.c~ 2006-10-11 14:18:57.000000000 -0400
+++ local-git/arch/x86_64/pci/mmconfig.c 2006-10-11 14:19:28.000000000 -0400
@@ -220,7 +220,7 @@ void __init pci_mmcfg_init(int type)

pci_mmcfg_virt = kmalloc(sizeof(*pci_mmcfg_virt) * pci_mmcfg_config_num, GFP_KERNEL);
if (pci_mmcfg_virt == NULL) {
- printk("PCI: Can not allocate memory for mmconfig structures\n");
+ printk(KERN_ERR "PCI: Can not allocate memory for mmconfig structures\n");
return;
}
for (i = 0; i < pci_mmcfg_config_num; ++i) {
@@ -228,7 +228,7 @@ void __init pci_mmcfg_init(int type)
pci_mmcfg_virt[i].virt = ioremap_nocache(pci_mmcfg_config[i].base_address,
MMCONFIG_APER_MAX);
if (!pci_mmcfg_virt[i].virt) {
- printk("PCI: Cannot map mmconfig aperture for segment %d\n",
+ printk(KERN_ERR "PCI: Cannot map mmconfig aperture for segment %d\n",
pci_mmcfg_config[i].pci_segment_group_number);
return;
}

--
http://www.codemonkey.org.uk


2006-10-16 10:48:04

by Andi Kleen

[permalink] [raw]
Subject: Re: x86-64 mmconfig missing printk levels.

On Wednesday 11 October 2006 20:21, Dave Jones wrote:
> Trivial bits..

Would be more for Greg.

-Andi

>
> Signed-off-by: Dave Jones <[email protected]>
>
> --- local-git/arch/x86_64/pci/mmconfig.c~ 2006-10-11 14:18:57.000000000 -0400
> +++ local-git/arch/x86_64/pci/mmconfig.c 2006-10-11 14:19:28.000000000 -0400
> @@ -220,7 +220,7 @@ void __init pci_mmcfg_init(int type)
>
> pci_mmcfg_virt = kmalloc(sizeof(*pci_mmcfg_virt) * pci_mmcfg_config_num, GFP_KERNEL);
> if (pci_mmcfg_virt == NULL) {
> - printk("PCI: Can not allocate memory for mmconfig structures\n");
> + printk(KERN_ERR "PCI: Can not allocate memory for mmconfig structures\n");
> return;
> }
> for (i = 0; i < pci_mmcfg_config_num; ++i) {
> @@ -228,7 +228,7 @@ void __init pci_mmcfg_init(int type)
> pci_mmcfg_virt[i].virt = ioremap_nocache(pci_mmcfg_config[i].base_address,
> MMCONFIG_APER_MAX);
> if (!pci_mmcfg_virt[i].virt) {
> - printk("PCI: Cannot map mmconfig aperture for segment %d\n",
> + printk(KERN_ERR "PCI: Cannot map mmconfig aperture for segment %d\n",
> pci_mmcfg_config[i].pci_segment_group_number);
> return;
> }
>