staging: speakup: fix printk KERN_LEVEL facility level warning
PATCH 1/1 staging: speakup: fix printk KERN_LEVEL facility level warning
Replace printk with pr_info to solve checkpatch.pl warning:
" WARNING: printk() should include KERN_<LEVEL> facility level"
Signed-off-by Jules Irenge <[email protected]>
--- drivers/staging/speakup/kobjects.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/speakup/kobjects.c +2 -2
@@ -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); } }
Signature · 1 line
2.20.1