All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 2/2] Staging: emxx_udc: Replace printk with pr_err
Date: Wed, 25 Feb 2015 08:54:34 -0800	[thread overview]
Message-ID: <20150225165434.GA30720@kroah.com> (raw)
In-Reply-To: <20150225162028.GA2253@example.com>

On Wed, Feb 25, 2015 at 07:20:28PM +0300, Haneen Mohammed wrote:
> On Tue, Feb 24, 2015 at 03:25:29PM -0800, Greg KH wrote:
> > On Sat, Feb 21, 2015 at 09:59:55PM +0100, Julia Lawall wrote:
> > > On Sat, 21 Feb 2015, Haneen Mohammed wrote:
> > > 
> > > > This patch replaces printk(KERN_ERR .. with pr_err, to fix the following
> > > > checkpatch.pl warning:
> > > > WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev,  ... then
> > > > dev_err(dev,  ... then pr_err(...  to printk(KERN_ERR ...
> > > > 
> > > > Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
> > > > ---
> > > >  drivers/staging/emxx_udc/emxx_udc.h | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > 
> > > > diff --git a/drivers/staging/emxx_udc/emxx_udc.h b/drivers/staging/emxx_udc/emxx_udc.h
> > > > index c1f98b3..c3fd7f6 100644
> > > > --- a/drivers/staging/emxx_udc/emxx_udc.h
> > > > +++ b/drivers/staging/emxx_udc/emxx_udc.h
> > > > @@ -644,6 +644,6 @@ volatile union usb_reg_access {
> > > >  };
> > > >  
> > > >  /*-------------------------------------------------------------------------*/
> > > > -#define ERR(stuff...)		printk(KERN_ERR "udc: " stuff)
> > > > +#define ERR(stuff...)		pr_err("udc: " stuff)
> > > 
> > > A better approach would be to remove ERR completely, and see which 
> > > standard kernel debugging function (pr_err?, dev_err?) could be used at 
> > > each point.
> > 
> > Ideally dev_err() should be used, just drop ERR() entirely please.
> > 
> > thanks,
> > 
> > greg k-h
> 
> I did drop ERR() macro and sent it as new patchset. the last revision
> was "[PATCH v5 0/6] Staging: emxx_udc: Fix checkpatch.pl warnings"

Great, thanks for this, still sifting through the submissions, in order,
so I hadn't gotten to these yet.

greg k-h


      reply	other threads:[~2015-02-25 16:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-20 23:21 [PATCH 0/2] Staging: emxx_udc: Fix checkpatch.pl warnings Haneen Mohammed
2015-02-20 23:29 ` [PATCH 1/2] Staging: emxx_udc: Fix do not add new typedefs Haneen Mohammed
2015-02-21 21:01   ` [Outreachy kernel] [PATCH v3 " Julia Lawall
2015-02-20 23:32 ` [PATCH 2/2] Staging: emxx_udc: Replace printk with pr_err Haneen Mohammed
2015-02-21 20:59   ` [Outreachy kernel] " Julia Lawall
2015-02-24 23:25     ` Greg KH
2015-02-25 16:20       ` Haneen Mohammed
2015-02-25 16:54         ` 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=20150225165434.GA30720@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=hamohammed.sa@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.