From: Greg KH <gregkh@linuxfoundation.org>
To: Arpith Easow Alexander <arpith99@gmail.com>
Cc: abbotti@mev.co.uk, fmhess@users.sourceforge.net,
hsweeten@visionengravers.com, dan.carpenter@oracle.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: comedi: drivers: replaced printk with dev_dbg
Date: Thu, 15 Nov 2012 15:25:19 -0800 [thread overview]
Message-ID: <20121115232519.GA27558@kroah.com> (raw)
In-Reply-To: <20121115162740.GA10360@gmail.com>
On Thu, Nov 15, 2012 at 09:57:42PM +0530, Arpith Easow Alexander wrote:
> On Tue, Nov 13, 2012 at 11:52:52AM -0800, Greg KH wrote:
> > On Sat, Nov 10, 2012 at 12:38:38PM +0530, Arpith Easow Alexander wrote:
> > > This is a patch to the vmk80xx.c file that replaces the printk with dev_dbg.
> > > This fixes the warnings found by the checkpatch.pl tool.
> > >
> > > Signed-off-by: Arpith Easow Alexander <arpith99@gmail.com>
> > > ---
> > > drivers/staging/comedi/drivers/vmk80xx.c | 30 ++++++++++++++++++------------
> > > 1 file changed, 18 insertions(+), 12 deletions(-)
> > >
> > > diff --git a/drivers/staging/comedi/drivers/vmk80xx.c b/drivers/staging/comedi/drivers/vmk80xx.c
> > > index df277aa..6eb5361 100644
> > > --- a/drivers/staging/comedi/drivers/vmk80xx.c
> > > +++ b/drivers/staging/comedi/drivers/vmk80xx.c
> > > @@ -131,10 +131,10 @@ static int dbgcm = 1;
> > > static int dbgcm;
> > > #endif
> > >
> > > -#define dbgcm(fmt, arg...) \
> > > +#define dbgcm(dev, fmt, arg...) \
> > > do { \
> > > if (dbgcm) \
> > > - printk(KERN_DEBUG fmt, ##arg); \
> > > + dev_dbg(dev, fmt, ##arg); \
> >
> > So a macro called dbgcm tests a variable called dbgcm? Gotta love c at
> > times...
> >
> > Just delete the macro, and the variable, and call dev_dbg() directly
> > please.
>
> Ok. Done. (Attached both changes).
As Hartley pointed out, I can't take patches as attachments, one per
email please.
thanks,
greg k-h
prev parent reply other threads:[~2012-11-15 23:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-10 7:08 Arpith Easow Alexander
2012-11-13 19:52 ` Greg KH
2012-11-15 16:27 ` Arpith Easow Alexander
2012-11-15 16:34 ` H Hartley Sweeten
2012-11-15 23:25 ` 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=20121115232519.GA27558@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=abbotti@mev.co.uk \
--cc=arpith99@gmail.com \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=fmhess@users.sourceforge.net \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome