aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-bus.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-10-06 17:33:44 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-04 11:47:18 -0500
commita369c791e881503a6253dafc0d0ad5e41e5557e5 (patch)
tree20de1e773f328875afbfaf96fedd3991e9288f68 /drivers/pci/setup-bus.c
parentfd95541e23e2c9acb1e38cd41fc0c7cc37fceb53 (diff)
PCI: print resources consistently with %pRt
This uses %pRt to print additional resource information (type, size, prefetchability, etc.) consistently. 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.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index cb1a027eb552..ceb75333862b 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -390,8 +390,8 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask,
390 align = pci_resource_alignment(dev, r); 390 align = pci_resource_alignment(dev, r);
391 order = __ffs(align) - 20; 391 order = __ffs(align) - 20;
392 if (order > 11) { 392 if (order > 11) {
393 dev_warn(&dev->dev, "BAR %d bad alignment %llx: " 393 dev_warn(&dev->dev, "BAR %d: bad alignment %llx: "
394 "%pR\n", i, (unsigned long long)align, r); 394 "%pRt\n", i, (unsigned long long)align, r);
395 r->flags = 0; 395 r->flags = 0;
396 continue; 396 continue;
397 } 397 }
@@ -582,10 +582,7 @@ static void pci_bus_dump_res(struct pci_bus *bus)
582 if (!res || !res->end) 582 if (!res || !res->end)
583 continue; 583 continue;
584 584
585 dev_printk(KERN_DEBUG, &bus->dev, "resource %d %s %pR\n", i, 585 dev_printk(KERN_DEBUG, &bus->dev, "resource %d %pRt\n", i, res);
586 (res->flags & IORESOURCE_IO) ? "io: " :
587 ((res->flags & IORESOURCE_PREFETCH)? "pref mem":"mem:"),
588 res);
589 } 586 }
590} 587}
591 588