diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-10-06 17:34:00 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-04 11:47:20 -0500 |
commit | 9a007b3791cdba3601d835ea10e68c14115b9afb (patch) | |
tree | 37b36bcacaf04a88cb19d28c9e811e5569a25e2c /drivers/pnp/quirks.c | |
parent | 637b363e86f71effe74cba5d509f18bd3199a65b (diff) |
PNP: print resources consistently with %pRt
This uses %pRt and %pRf 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/pnp/quirks.c')
-rw-r--r-- | drivers/pnp/quirks.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index 8473fe5ed7ff..3a2031b25c3c 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c | |||
@@ -285,15 +285,9 @@ static void quirk_system_pci_resources(struct pnp_dev *dev) | |||
285 | * the PCI region, and that might prevent a PCI | 285 | * the PCI region, and that might prevent a PCI |
286 | * driver from requesting its resources. | 286 | * driver from requesting its resources. |
287 | */ | 287 | */ |
288 | dev_warn(&dev->dev, "%s resource " | 288 | dev_warn(&dev->dev, "resource %pRt overlaps %s " |
289 | "(0x%llx-0x%llx) overlaps %s BAR %d " | 289 | "BAR %d %pRt, disabling\n", res, |
290 | "(0x%llx-0x%llx), disabling\n", | 290 | pci_name(pdev), i, &pdev->resource[i]); |
291 | pnp_resource_type_name(res), | ||
292 | (unsigned long long) pnp_start, | ||
293 | (unsigned long long) pnp_end, | ||
294 | pci_name(pdev), i, | ||
295 | (unsigned long long) pci_start, | ||
296 | (unsigned long long) pci_end); | ||
297 | res->flags |= IORESOURCE_DISABLED; | 291 | res->flags |= IORESOURCE_DISABLED; |
298 | } | 292 | } |
299 | } | 293 | } |