aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.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/pci.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/pci.c')
-rw-r--r--drivers/pci/pci.c4
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
1678 return 0; 1678 return 0;
1679 1679
1680err_out: 1680err_out:
1681 dev_warn(&pdev->dev, "BAR %d: can't reserve %s region %pR\n", 1681 dev_warn(&pdev->dev, "BAR %d: can't reserve %pRt\n", bar,
1682 bar,
1683 pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem",
1684 &pdev->resource[bar]); 1682 &pdev->resource[bar]);
1685 return -EBUSY; 1683 return -EBUSY;
1686} 1684}