summaryrefslogtreecommitdiff
path: root/drivers/pnp/core.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-05-12 22:44:41 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-05-17 16:57:18 +0200
commit5bb5ceac1275cbbe757d9eecbd4b8c8a4f403c32 (patch)
tree5d14445d99babcefd733cd658b388e4dbfd7cdd2 /drivers/pnp/core.c
parentb15fc7c2c88e7a97fa347446301c37272de20ed5 (diff)
PNP: Switch over to dev_dbg()
Debug output in dmesg log may confuse users, so restrict debug output to cases where DEBUG is defined or dynamic debug output is enabled for the respective code piece. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pnp/core.c')
-rw-r--r--drivers/pnp/core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pnp/core.c b/drivers/pnp/core.c
index ccdfbf3978c0..4df5aa6a309c 100644
--- a/drivers/pnp/core.c
+++ b/drivers/pnp/core.c
@@ -215,9 +215,8 @@ int pnp_add_device(struct pnp_dev *dev)
for (id = dev->id; id; id = id->next)
len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id);
- dev_printk(KERN_DEBUG, &dev->dev, "%s device, IDs%s (%s)\n",
- dev->protocol->name, buf,
- dev->active ? "active" : "disabled");
+ dev_dbg(&dev->dev, "%s device, IDs%s (%s)\n", dev->protocol->name, buf,
+ dev->active ? "active" : "disabled");
return 0;
}