All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Aastha Gupta <aastha.gupta4104@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [PATCH 3/7] staging: rtl8188eu: use pr_info() instead of printk()
Date: Wed, 18 Oct 2017 15:26:51 +0200	[thread overview]
Message-ID: <20171018132651.GA11879@kroah.com> (raw)
In-Reply-To: <1507208787-18008-4-git-send-email-aastha.gupta4104@gmail.com>

On Thu, Oct 05, 2017 at 06:36:23PM +0530, Aastha Gupta wrote:
> Fixes checkpatch.pl warning:
> WARNING: printk() should include KERN_ facility level
> 
> Replaced printk() without any KERN_facility level with pr_info().
> The statements before use pr_info and the new line character is to be
> appended to them.
> Could have used printk() with KERN_INFO level, but used pr_info() just to use the same function as that had been used before in the code.
> 
> Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
> ---
>  drivers/staging/rtl8188eu/include/rtw_debug.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8188eu/include/rtw_debug.h b/drivers/staging/rtl8188eu/include/rtw_debug.h
> index 9cc4b8c..33bc7f5 100644
> --- a/drivers/staging/rtl8188eu/include/rtw_debug.h
> +++ b/drivers/staging/rtl8188eu/include/rtw_debug.h
> @@ -106,9 +106,9 @@ extern u32 GlobalDebugLevel;
>  					 (((__i + 1) % 4) == 0) ?	\
>  					 "  " : " ");	\
>  				if (((__i + 1) % 16) == 0)		\
> -					printk("\n");			\
> +					pr_info("\n");			\

No, this isn't doing what you think it is...

It should be a 'pr_cont()', right?

thanks,

greg k-h


  reply	other threads:[~2017-10-18 13:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05 13:06 [PATCH 0/7] staging: rtl8188eu: fix code styling issues Aastha Gupta
2017-10-05 13:06 ` [PATCH 1/7] staging: rtl8188eu: fix block comment styling in rtl8188eu files Aastha Gupta
2017-10-05 13:06 ` [PATCH 2/7] staging: rtl8188eu: fix space between function name and '(' Aastha Gupta
2017-10-05 13:06 ` [PATCH 3/7] staging: rtl8188eu: use pr_info() instead of printk() Aastha Gupta
2017-10-18 13:26   ` Greg Kroah-Hartman [this message]
2017-10-18 18:18     ` Aastha Gupta
2017-10-05 13:06 ` [PATCH 4/7] staging: rtl8188eu: fix spaces before tabs Aastha Gupta
2017-10-05 13:06 ` [PATCH 5/7] staging: rtl8188eu: add spaces around algebric and boolean operators Aastha Gupta
2017-10-05 13:06 ` [PATCH 6/7] staging: rtl8188eu: prefer using BIT macro Aastha Gupta
2017-10-18 13:42   ` Greg Kroah-Hartman
2017-10-18 13:59     ` Aastha Gupta
2017-10-05 13:06 ` [PATCH 7/7] staging: rtl8188eu: add spaces around '|' Aastha Gupta
2017-10-18 13:43   ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171018132651.GA11879@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=aastha.gupta4104@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.