Commit 5bb5ceac authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Rafael J. Wysocki
Browse files

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b15fc7c2
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -215,8 +215,7 @@ 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_dbg(&dev->dev, "%s device, IDs%s (%s)\n", dev->protocol->name, buf,
		dev->active ? "active" : "disabled");
	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ struct pnp_resource *pnp_add_irq_resource(struct pnp_dev *dev, int irq,
	res->start = irq;
	res->end = irq;

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