diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-12-18 18:34:19 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:13:19 -0500 |
commit | a19f5df7d9696b9e53ba7c865816597057d5f76e (patch) | |
tree | 344ead23faba0fa94c3c1711b70ac61325393a66 /drivers/pci/setup-bus.c | |
parent | db5679437a2b938c9127480a3923633721583a4f (diff) |
PCI: use dev_printk for PCI bus resource mssages
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>
Diffstat (limited to 'drivers/pci/setup-bus.c')
-rw-r--r-- | drivers/pci/setup-bus.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 09e2c3cd2bef..704608945780 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c | |||
@@ -536,9 +536,8 @@ static void pci_bus_dump_res(struct pci_bus *bus) | |||
536 | if (!res) | 536 | if (!res) |
537 | continue; | 537 | continue; |
538 | 538 | ||
539 | printk(KERN_DEBUG "pci %04x:%02x: bus resource %d %s %pR\n", | 539 | dev_printk(KERN_DEBUG, &bus->dev, "resource %d %s %pR\n", i, |
540 | pci_domain_nr(bus), bus->number, i, | 540 | (res->flags & IORESOURCE_IO) ? "io: " : "mem:", res); |
541 | (res->flags & IORESOURCE_IO) ? "io: " : "mem:", res); | ||
542 | } | 541 | } |
543 | } | 542 | } |
544 | 543 | ||