Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/PCI: use dev_printk for PCI bus locality messages

Since pci_bus has a struct device, use dev_printk directly instead
of faking it by hand.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

authored by

Bjorn Helgaas and committed by
Jesse Barnes
2b8c2efe a19f5df7

+3 -5
+3 -5
arch/x86/pci/acpi.c
··· 210 210 if (bus && node != -1) { 211 211 #ifdef CONFIG_ACPI_NUMA 212 212 if (pxm >= 0) 213 - printk(KERN_DEBUG 214 - "pci %04x:%02x: bus on NUMA node %d (pxm %d)\n", 215 - domain, busnum, node, pxm); 213 + dev_printk(KERN_DEBUG, &bus->dev, 214 + "on NUMA node %d (pxm %d)\n", node, pxm); 216 215 #else 217 - printk(KERN_DEBUG "pci %04x:%02x: bus on NUMA node %d\n", 218 - domain, busnum, node); 216 + dev_printk(KERN_DEBUG, &bus->dev, "on NUMA node %d\n", node); 219 217 #endif 220 218 } 221 219