Skip to contentSkip to conversation

staging: wilc1000: Replace printk() with pr_info().

PATCH In review Elise Lennion 1 participant 1 message Oct 7, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 staging: wilc1000: Replace printk() with pr_info().

Fix checkpatch warning:

WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...

Replace printk(KERN_INFO...) by pr_info() for more uniform error reporting.

---
 drivers/staging/wilc1000/wilc_debugfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/wilc_debugfs.c +2 -2
index 802bb1d..70af32e 100644
@@ -69,9 +69,9 @@ static ssize_t wilc_debug_level_write(struct file *filp, const char __user *buf,
 	atomic_set(&WILC_DEBUG_LEVEL, (int)flag);
 
 	if (flag == 0)
-		printk(KERN_INFO "Debug-level disabled\n");
+		pr_info("Debug-level disabled\n");
 	else
-		printk(KERN_INFO "Debug-level enabled\n");
+		pr_info("Debug-level enabled\n");
 
 	return count;
 }
Signature · 1 line
2.7.4