w1: use pr_* instead of printk
This patch replaces all calls to the "printk" function within the main "w1" directory by calls to the appropriate "pr_*" function thus addressing the following warning generated by the checkpatch script: WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: Fjodor Schelichow <fjodor.schelichow@hotmail.com> Signed-off-by: Roman Sommer <romsom2@yahoo.de> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
这个提交包含在:
@@ -87,7 +87,7 @@ void w1_unregister_family(struct w1_family *fent)
|
||||
w1_reconnect_slaves(fent, 0);
|
||||
|
||||
while (atomic_read(&fent->refcnt)) {
|
||||
printk(KERN_INFO "Waiting for family %u to become free: refcnt=%d.\n",
|
||||
pr_info("Waiting for family %u to become free: refcnt=%d.\n",
|
||||
fent->fid, atomic_read(&fent->refcnt));
|
||||
|
||||
if (msleep_interruptible(1000))
|
||||
|
在新工单中引用
屏蔽一个用户