All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: speakup: fix printk KERN_LEVEL facility level warning
@ 2019-03-17  3:12 Jules Irenge
  2019-03-17  7:17 ` [Outreachy kernel] " Julia Lawall
  2019-03-17 10:15 ` Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Jules Irenge @ 2019-03-17  3:12 UTC (permalink / raw)
  To: gregkh; +Cc: outreachy-kernel

Replace printk with pr_debug to solve checkpatch.pl warning:
 " WARNING: printk() should include  KERN_<LEVEL> facility level"

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
 drivers/staging/speakup/kobjects.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c
index 11c704b27c3c..2eb5af3debb3 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_debug(buf);
 	}
 }
 
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Outreachy kernel] [PATCH] staging: speakup: fix printk KERN_LEVEL facility level warning
  2019-03-17  3:12 [PATCH] staging: speakup: fix printk KERN_LEVEL facility level warning Jules Irenge
@ 2019-03-17  7:17 ` Julia Lawall
  2019-03-17 10:15 ` Greg KH
  1 sibling, 0 replies; 4+ messages in thread
From: Julia Lawall @ 2019-03-17  7:17 UTC (permalink / raw)
  To: Jules Irenge; +Cc: gregkh, outreachy-kernel



On Sun, 17 Mar 2019, Jules Irenge wrote:

> Replace printk with pr_debug to solve checkpatch.pl warning:
>  " WARNING: printk() should include  KERN_<LEVEL> facility level"

Why did you choose pr_debug?

julia

>
> Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
> ---
>  drivers/staging/speakup/kobjects.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c
> index 11c704b27c3c..2eb5af3debb3 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_debug(buf);
>  	}
>  }
>
> --
> 2.20.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190317031236.9361-1-jbi.octave%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: speakup: fix printk KERN_LEVEL facility level warning
  2019-03-17  3:12 [PATCH] staging: speakup: fix printk KERN_LEVEL facility level warning Jules Irenge
  2019-03-17  7:17 ` [Outreachy kernel] " Julia Lawall
@ 2019-03-17 10:15 ` Greg KH
  1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2019-03-17 10:15 UTC (permalink / raw)
  To: Jules Irenge; +Cc: outreachy-kernel

On Sun, Mar 17, 2019 at 03:12:36AM +0000, Jules Irenge wrote:
> Replace printk with pr_debug to solve checkpatch.pl warning:
>  " WARNING: printk() should include  KERN_<LEVEL> facility level"
> 
> Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
> ---
>  drivers/staging/speakup/kobjects.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c
> index 11c704b27c3c..2eb5af3debb3 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_debug(buf);

This is not correct, look at the other messages in this function for
why this is the case.

thanks,

greg k-h


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] staging: speakup: fix printk KERN_LEVEL facility level warning
@ 2019-03-18 13:21 Jules Irenge
  0 siblings, 0 replies; 4+ messages in thread
From: Jules Irenge @ 2019-03-18 13:21 UTC (permalink / raw)
  To: gregkh; +Cc: outreachy-kernel

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>
---
 drivers/staging/speakup/kobjects.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c
index f653c16eb4e5..41ae24ab5d08 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);
 	}
 }
 
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-18 13:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-17  3:12 [PATCH] staging: speakup: fix printk KERN_LEVEL facility level warning Jules Irenge
2019-03-17  7:17 ` [Outreachy kernel] " Julia Lawall
2019-03-17 10:15 ` Greg KH
2019-03-18 13:21 Jules Irenge

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.