diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-08-19 18:53:47 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-10 23:34:33 -0400 |
commit | 2f53432c2aedbe79020e44525eb069d9138a01dd (patch) | |
tree | 54ac6a9d9ff7aa24c0d9fabe48e38caf076830c7 /drivers/pnp/support.c | |
parent | 97ef062bbe08f46903f29ecdf432be302c977f3b (diff) |
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) | |||
81 | struct resource *res; | 81 | struct resource *res; |
82 | 82 | ||
83 | if (list_empty(&dev->resources)) { | 83 | if (list_empty(&dev->resources)) { |
84 | dev_dbg(&dev->dev, "%s: no current resources\n", desc); | 84 | pnp_dbg(&dev->dev, "%s: no current resources\n", desc); |
85 | return; | 85 | return; |
86 | } | 86 | } |
87 | 87 | ||
88 | dev_dbg(&dev->dev, "%s: current resources:\n", desc); | 88 | pnp_dbg(&dev->dev, "%s: current resources:\n", desc); |
89 | list_for_each_entry(pnp_res, &dev->resources, list) { | 89 | list_for_each_entry(pnp_res, &dev->resources, list) { |
90 | res = &pnp_res->res; | 90 | res = &pnp_res->res; |
91 | len = 0; | 91 | len = 0; |
@@ -94,7 +94,7 @@ void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) | |||
94 | pnp_resource_type_name(res)); | 94 | pnp_resource_type_name(res)); |
95 | 95 | ||
96 | if (res->flags & IORESOURCE_DISABLED) { | 96 | if (res->flags & IORESOURCE_DISABLED) { |
97 | dev_dbg(&dev->dev, "%sdisabled\n", buf); | 97 | pnp_dbg(&dev->dev, "%sdisabled\n", buf); |
98 | continue; | 98 | continue; |
99 | } | 99 | } |
100 | 100 | ||
@@ -115,7 +115,7 @@ void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) | |||
115 | res->flags); | 115 | res->flags); |
116 | break; | 116 | break; |
117 | } | 117 | } |
118 | dev_dbg(&dev->dev, "%s\n", buf); | 118 | pnp_dbg(&dev->dev, "%s\n", buf); |
119 | } | 119 | } |
120 | } | 120 | } |
121 | 121 | ||
@@ -205,5 +205,5 @@ void dbg_pnp_show_option(struct pnp_dev *dev, struct pnp_option *option) | |||
205 | "flags %#x", dma->map, dma->flags); | 205 | "flags %#x", dma->map, dma->flags); |
206 | break; | 206 | break; |
207 | } | 207 | } |
208 | dev_dbg(&dev->dev, "%s\n", buf); | 208 | pnp_dbg(&dev->dev, "%s\n", buf); |
209 | } | 209 | } |