lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20121115232519.GA27558@kroah.com>
Date:	Thu, 15 Nov 2012 15:25:19 -0800
From:	Greg KH <gregkh@...uxfoundation.org>
To:	Arpith Easow Alexander <arpith99@...il.com>
Cc:	abbotti@....co.uk, fmhess@...rs.sourceforge.net,
	hsweeten@...ionengravers.com, dan.carpenter@...cle.com,
	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Staging: comedi: drivers: replaced printk with dev_dbg

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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ