Skip to content

Commit 5bb5cea

Browse files
hkallweitrafaeljw
authored andcommitted
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 <[email protected]> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent b15fc7c commit 5bb5cea

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/pnp/core.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,8 @@ int pnp_add_device(struct pnp_dev *dev)
215215
for (id = dev->id; id; id = id->next)
216216
len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id);
217217

218-
dev_printk(KERN_DEBUG, &dev->dev, "%s device, IDs%s (%s)\n",
219-
dev->protocol->name, buf,
220-
dev->active ? "active" : "disabled");
218+
dev_dbg(&dev->dev, "%s device, IDs%s (%s)\n", dev->protocol->name, buf,
219+
dev->active ? "active" : "disabled");
221220
return 0;
222221
}
223222

drivers/pnp/resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ struct pnp_resource *pnp_add_irq_resource(struct pnp_dev *dev, int irq,
540540
res->start = irq;
541541
res->end = irq;
542542

543-
dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
543+
dev_dbg(&dev->dev, "%pR\n", res);
544544
return pnp_res;
545545
}
546546

0 commit comments

Comments
 (0)