diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-10-06 23:33:44 +0200 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-04 17:47:18 +0100 |
commit | a369c791e881503a6253dafc0d0ad5e41e5557e5 (patch) | |
tree | 20de1e773f328875afbfaf96fedd3991e9288f68 /drivers/pci/pci.c | |
parent | vsprintf: add %pRt, %pRf to print struct resource details (diff) | |
download | linux-a369c791e881503a6253dafc0d0ad5e41e5557e5.tar.xz linux-a369c791e881503a6253dafc0d0ad5e41e5557e5.zip |
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/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 3f8d971ac36e..4859669f0ab5 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1678,9 +1678,7 @@ static int __pci_request_region(struct pci_dev *pdev, int bar, const char *res_n return 0; err_out: - dev_warn(&pdev->dev, "BAR %d: can't reserve %s region %pR\n", - bar, - pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem", + dev_warn(&pdev->dev, "BAR %d: can't reserve %pRt\n", bar, &pdev->resource[bar]); return -EBUSY; } |