Browse Source

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>
Bjorn Helgaas 16 năm trước cách đây
mục cha
commit
2b8c2efe44
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  1. 3 5
      arch/x86/pci/acpi.c

+ 3 - 5
arch/x86/pci/acpi.c

@@ -210,12 +210,10 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
 	if (bus && node != -1) {
 	if (bus && node != -1) {
 #ifdef CONFIG_ACPI_NUMA
 #ifdef CONFIG_ACPI_NUMA
 		if (pxm >= 0)
 		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
 #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
 #endif
 	}
 	}