staging: wilc1000: Replace printk() with pr_info().
authorElise Lennion <elise.lennion@gmail.com>
Mon, 10 Oct 2016 03:38:20 +0000 (00:38 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:26:05 +0000 (10:26 +0200)
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.

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_debugfs.c

index 802bb1d5e2071eca41e8d6f53eec9621ec0d40f8..07260c497db4e400f43c5f40ef8a2d3ba26ce25f 100644 (file)
@@ -62,16 +62,16 @@ static ssize_t wilc_debug_level_write(struct file *filp, const char __user *buf,
                return ret;
 
        if (flag > DBG_LEVEL_ALL) {
-               printk("%s, value (0x%08x) is out of range, stay previous flag (0x%08x)\n", __func__, flag, atomic_read(&WILC_DEBUG_LEVEL));
+               pr_info("%s, value (0x%08x) is out of range, stay previous flag (0x%08x)\n", __func__, flag, atomic_read(&WILC_DEBUG_LEVEL));
                return -EINVAL;
        }
 
        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;
 }