staging: speakup: fix printk KERN_LEVEL facility level warning
authorJules Irenge <jbi.octave@gmail.com>
Mon, 18 Mar 2019 13:21:10 +0000 (13:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 17:53:16 +0000 (18:53 +0100)
Replace printk with pr_info to solve checkpatch.pl warning:
 " WARNING: printk() should include  KERN_<LEVEL> facility level"

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/kobjects.c

index f653c16..41ae24a 100644 (file)
@@ -99,7 +99,7 @@ static void report_char_chartab_status(int reset, int received, int used,
                        snprintf(buf + (len - 1), sizeof(buf) - (len - 1),
                                 " with %d reject%s\n",
                                 rejected, rejected > 1 ? "s" : "");
-               printk(buf);
+               pr_info("%s", buf);
        }
 }
 
@@ -744,7 +744,7 @@ static void report_msg_status(int reset, int received, int used,
                        snprintf(buf + (len - 1), sizeof(buf) - (len - 1),
                                 " with %d reject%s\n",
                                 rejected, rejected > 1 ? "s" : "");
-               printk(buf);
+               pr_info("%s", buf);
        }
 }