Skip to content

Commit

Permalink
x86/PCI: use dev_printk for PCI bus locality messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Jan 7, 2009
1 parent a19f5df commit 2b8c2ef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions arch/x86/pci/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2b8c2ef

Please sign in to comment.