From: Jules Irenge Date: Mon, 18 Mar 2019 13:21:10 +0000 (+0000) Subject: staging: speakup: fix printk KERN_LEVEL facility level warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c9da300ab61cbf5f2aeb4558f5894cda33ffeb50;p=linux.git staging: speakup: fix printk KERN_LEVEL facility level warning Replace printk with pr_info to solve checkpatch.pl warning: " WARNING: printk() should include KERN_ facility level" Signed-off-by: Jules Irenge Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c index f653c16eb4e52..41ae24ab5d086 100644 --- a/drivers/staging/speakup/kobjects.c +++ b/drivers/staging/speakup/kobjects.c @@ -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); } }