x86/PCI: make PCI bus locality messages more meaningful
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 10 Dec 2008 20:12:00 +0000 (13:12 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:12:45 +0000 (11:12 -0800)
Change PCI bus locality messages so they have a bit more context
and look like the rest of PCI, e.g.,

    - bus 01 -> node 0
    - bus 04 -> node 0
    + pci 0000:01: bus on NUMA node 0
    + pci 0000:04: bus on NUMA node 0

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/pci/acpi.c

index 9e5752f..6c76837 100644 (file)
@@ -210,11 +210,12 @@ 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 "bus %02x -> pxm %d -> node %d\n",
-                               busnum, pxm, node);
+                       printk(KERN_DEBUG
+                              "pci %04x:%02x: bus on NUMA node %d (pxm %d)\n",
+                               domain, busnum, node, pxm);
 #else
-               printk(KERN_DEBUG "bus %02x -> node %d\n",
-                       busnum, node);
+               printk(KERN_DEBUG "pci %04x:%02x: bus on NUMA node %d\n",
+                       domain, busnum, node);
 #endif
        }