x86/PCI: print domain:bus in conventional format
Use the dev_printk-like "%04x:%02x" format for printing PCI bus numbers. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
committed by
Jesse Barnes
parent
10c3d71d42
commit
2a6bed8301
@@ -172,8 +172,9 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (domain && !pci_domains_supported) {
|
if (domain && !pci_domains_supported) {
|
||||||
printk(KERN_WARNING "PCI: Multiple domains not supported "
|
printk(KERN_WARNING "pci_bus %04x:%02x: "
|
||||||
"(dom %d, bus %d)\n", domain, busnum);
|
"ignored (multiple domains not supported)\n",
|
||||||
|
domain, busnum);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,7 +198,8 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
|
|||||||
*/
|
*/
|
||||||
sd = kzalloc(sizeof(*sd), GFP_KERNEL);
|
sd = kzalloc(sizeof(*sd), GFP_KERNEL);
|
||||||
if (!sd) {
|
if (!sd) {
|
||||||
printk(KERN_ERR "PCI: OOM, not probing PCI bus %02x\n", busnum);
|
printk(KERN_WARNING "pci_bus %04x:%02x: "
|
||||||
|
"ignored (out of memory)\n", domain, busnum);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user