x86/PCI: use dev_printk for PCI bus locality messages
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Thu, 18 Dec 2008 23:34:51 +0000 (16:34 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:19 +0000 (11:13 -0800)
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>
arch/x86/pci/acpi.c

index 6c7683709c441a4b08cb416cf42aa7a31561599a..c0ecf250fe5166a82f3343b622c1ec0e07119b80 100644 (file)
@@ -210,12 +210,10 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
        if (bus && node != -1) {
 #ifdef CONFIG_ACPI_NUMA
                if (pxm >= 0)
-                       printk(KERN_DEBUG
-                              "pci %04x:%02x: bus on NUMA node %d (pxm %d)\n",
-                               domain, busnum, node, pxm);
+                       dev_printk(KERN_DEBUG, &bus->dev,
+                                  "on NUMA node %d (pxm %d)\n", node, pxm);
 #else
-               printk(KERN_DEBUG "pci %04x:%02x: bus on NUMA node %d\n",
-                       domain, busnum, node);
+               dev_printk(KERN_DEBUG, &bus->dev, "on NUMA node %d\n", node);
 #endif
        }