All of lore.kernel.org
 help / color / mirror / Atom feed
From: Haneen Mohammed <hamohammed.sa@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: gregkh@linuxfoundation.org
Subject: Re: [Outreachy kernel] [PATCH v5 3/6] Staging: emxx_udc: Replace custom printk macro ERR with pr_err
Date: Fri, 27 Feb 2015 03:27:26 +0300	[thread overview]
Message-ID: <20150227002726.GA12491@example.com> (raw)
In-Reply-To: <20150226232212.GB21368@kroah.com>

On Thu, Feb 26, 2015 at 03:22:12PM -0800, Greg KH wrote:
> On Tue, Feb 24, 2015 at 05:33:49PM +0300, Haneen Mohammed wrote:
> > This patch removes half custom printk macros ERR and replace it with
> > pr_err. Issue addressed by checkpathc.pl.
> > 
> > Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
> > ---
> > v5: Fix spelling mistakes
> > 
> >  drivers/staging/emxx_udc/emxx_udc.c | 56 ++++++++++++++++++-------------------
> >  1 file changed, 28 insertions(+), 28 deletions(-)
> > 
> > diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c
> > index c9f5e5d..f33980c 100644
> > --- a/drivers/staging/emxx_udc/emxx_udc.c
> > +++ b/drivers/staging/emxx_udc/emxx_udc.c
> > @@ -115,7 +115,7 @@ static void _nbu2ss_dump_register(struct nbu2ss_udc *udc)
> >  	pr_info("=== %s()\n", __func__);
> >  
> >  	if (udc == NULL) {
> > -		ERR("%s udc == NULL\n", __func__);
> > +		pr_err("udc: %s udc == NULL\n", __func__);
> 
> As this is a driver, you should be able to use dev_err() for all of
> these statements.  Please do that instead.
> 
> thanks,
> 
> greg k-h

I did my best to look for a struct device *dev to use it in dev_err()
but in these cases I couldn't. It was either not present or uninitialized yet, so I used pr_err instead. Would that be correct or is there another way of doing it?

And thank you for reviewing the patches!
Haneen



  parent reply	other threads:[~2015-02-27  0:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-24 14:18 [PATCH v5 0/6] Staging: emxx_udc: Fix checkpatch.pl warnings Haneen Mohammed
2015-02-24 14:23 ` [PATCH v5 1/6] Staging: emxx_udc: Fix do not add new typedefs Haneen Mohammed
2015-02-26 23:20   ` [Outreachy kernel] " Greg KH
2015-02-24 14:31 ` [PATCH v5 2/6] Staging: emxx_udc: Remove volatile from union usb_regs_access Haneen Mohammed
2015-02-26 23:21   ` [Outreachy kernel] " Greg KH
2015-02-24 14:33 ` [PATCH v5 3/6] Staging: emxx_udc: Replace custom printk macro ERR with pr_err Haneen Mohammed
     [not found]   ` <20150226232212.GB21368@kroah.com>
2015-02-27  0:27     ` Haneen Mohammed [this message]
2015-02-27  0:51       ` [Outreachy kernel] " Greg KH
2015-02-24 14:36 ` [PATCH v5 4/6] Staging: emxx_udc: Replace custom printk macro ERR with dev_err Haneen Mohammed
2015-02-26 23:23   ` [Outreachy kernel] " Greg KH
2015-02-24 14:39 ` [PATCH v5 5/6] Staging: emxx_udc: Remove custom printk macro ERR Haneen Mohammed
2015-02-24 14:41 ` [PATCH v5 6/6] Staging: emxx_udc: Clean dev_err() logging Haneen Mohammed

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=20150227002726.GA12491@example.com \
    --to=hamohammed.sa@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --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.