mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
pci: Use new %pR to print resource ranges
This converts things in drivers/pci to use %pR to printout the content of a struct resource instead of hand-casted %llx or other variants. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
332d2e7834
commit
096e6f673d
4 changed files with 32 additions and 54 deletions
|
@ -1358,11 +1358,10 @@ int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name)
|
|||
return 0;
|
||||
|
||||
err_out:
|
||||
dev_warn(&pdev->dev, "BAR %d: can't reserve %s region [%#llx-%#llx]\n",
|
||||
dev_warn(&pdev->dev, "BAR %d: can't reserve %s region %pR\n",
|
||||
bar,
|
||||
pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem",
|
||||
(unsigned long long)pci_resource_start(pdev, bar),
|
||||
(unsigned long long)pci_resource_end(pdev, bar));
|
||||
&pdev->resource[bar]);
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue