All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: "Ksenija Stanojević" <ksenija.stanojevic@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v2] Staging: rtl8192u: Replace printk() with pr_debug()
Date: Thu, 26 Feb 2015 14:26:24 -0800	[thread overview]
Message-ID: <20150226222624.GA9490@kroah.com> (raw)
In-Reply-To: <CAL7P5jLEtranaPTzFej-b61B0FsW8=08cg3E5Cdrto0NvrqjkA@mail.gmail.com>

On Thu, Feb 26, 2015 at 10:55:13PM +0100, Ksenija Stanojević wrote:
> On Thu, Feb 26, 2015 at 10:45 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> > On Mon, Feb 23, 2015 at 08:56:19PM +0100, Ksenija Stanojevic wrote:
> >> For dynamic debugging pr_debug() macro is preferred over printk(), which
> >> is the raw way to print something. Issue found by checkpatch.pl.
> >>
> >> Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
> >> ---
> >> v2: include only changes made to this file.
> >>
> >>  drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c | 4 ++--
> >>  1 file changed, 2 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c
> >> index 8c1bf1f..7fab680 100644
> >> --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c
> >> +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c
> >> @@ -49,14 +49,14 @@ static void *prism2_wep_init(int keyidx)
> >>
> >>       priv->tx_tfm = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC);
> >>       if (IS_ERR(priv->tx_tfm)) {
> >> -             printk(KERN_DEBUG "ieee80211_crypt_wep: could not allocate "
> >> +             pr_debug("ieee80211_crypt_wep: could not allocate "
> >>                      "crypto API arc4\n");
> >>               priv->tx_tfm = NULL;
> >>               goto fail;
> >>       }
> >>       priv->rx_tfm = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC);
> >>       if (IS_ERR(priv->rx_tfm)) {
> >> -             printk(KERN_DEBUG "ieee80211_crypt_wep: could not allocate "
> >> +             pr_debug("ieee80211_crypt_wep: could not allocate "
> >>                      "crypto API arc4\n");
> >
> > Please use net_dbg() instead
> >
> I already tried netdev_dbg, but there's no pointer to net stucture in
> function argument list.

Ok, then please resend the patch, and add that information to the
changelog section, so that I and everyone else knows this.

thanks,

greg k-h


      reply	other threads:[~2015-02-26 22:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-23 19:56 [PATCH v2] Staging: rtl8192u: Replace printk() with pr_debug() Ksenija Stanojevic
2015-02-23 19:57 ` [Outreachy kernel] " Jes Sorensen
2015-02-26 21:45 ` Greg KH
2015-02-26 21:55   ` Ksenija Stanojević
2015-02-26 22:26     ` Greg KH [this message]

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=20150226222624.GA9490@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=ksenija.stanojevic@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.