diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-08-20 02:53:47 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-11 07:34:33 +0400 |
commit | 2f53432c2aedbe79020e44525eb069d9138a01dd (patch) | |
tree | 54ac6a9d9ff7aa24c0d9fabe48e38caf076830c7 /drivers/pnp/support.c | |
parent | 97ef062bbe08f46903f29ecdf432be302c977f3b (diff) | |
download | linux-2f53432c2aedbe79020e44525eb069d9138a01dd.tar.xz |
PNP: convert to using pnp_dbg()
pnp_dbg() is equivalent to dev_dbg() except that we can turn it
on at boot-time with the "pnp.debug" kernel parameter, so we don't
have to build a new kernel image.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/support.c')
-rw-r--r-- | drivers/pnp/support.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pnp/support.c b/drivers/pnp/support.c index 714918655e04..63087d5ce609 100644 --- a/drivers/pnp/support.c +++ b/drivers/pnp/support.c @@ -81,11 +81,11 @@ void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) struct resource *res; if (list_empty(&dev->resources)) { - dev_dbg(&dev->dev, "%s: no current resources\n", desc); + pnp_dbg(&dev->dev, "%s: no current resources\n", desc); return; } - dev_dbg(&dev->dev, "%s: current resources:\n", desc); + pnp_dbg(&dev->dev, "%s: current resources:\n", desc); list_for_each_entry(pnp_res, &dev->resources, list) { res = &pnp_res->res; len = 0; @@ -94,7 +94,7 @@ void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) pnp_resource_type_name(res)); if (res->flags & IORESOURCE_DISABLED) { - dev_dbg(&dev->dev, "%sdisabled\n", buf); + pnp_dbg(&dev->dev, "%sdisabled\n", buf); continue; } @@ -115,7 +115,7 @@ void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) res->flags); break; } - dev_dbg(&dev->dev, "%s\n", buf); + pnp_dbg(&dev->dev, "%s\n", buf); } } @@ -205,5 +205,5 @@ void dbg_pnp_show_option(struct pnp_dev *dev, struct pnp_option *option) "flags %#x", dma->map, dma->flags); break; } - dev_dbg(&dev->dev, "%s\n", buf); + pnp_dbg(&dev->dev, "%s\n", buf); } |