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>
This commit is contained in:
committed by
Jesse Barnes
parent
fd95541e23
commit
a369c791e8
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user