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] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 21 Nov 2010 01:38:55 +0300
From:	Alexander Gordeev <lasaine@....cs.msu.su>
To:	Joe Perches <joe@...ches.com>
Cc:	Rodolfo Giometti <giometti@...eenne.com>,
	linux-kernel@...r.kernel.org,
	"Nikita V. Youshchenko" <yoush@...msu.su>,
	linuxpps@...enneenne.com,
	Andrew Morton <akpm@...ux-foundation.org>,
	Tejun Heo <tj@...nel.org>
Subject: Re: [PATCHv4 06/17] pps: convert printk/pr_* to dev_*

В Sat, 20 Nov 2010 13:42:34 -0800
Joe Perches <joe@...ches.com> пишет:

> On Sun, 2010-11-21 at 00:33 +0300, Alexander Gordeev wrote:
> > В Sat, 20 Nov 2010 16:49:40 +0100
> > Rodolfo Giometti <giometti@...eenne.com> пишет:
> > > On Thu, Nov 18, 2010 at 07:00:59PM +0300, Alexander Gordeev wrote:
> > > > Since we now have direct pointers to struct pps_device everywhere it's
> > > > easy to use dev_* functions to print messages instead of plain printks.
> > > > Where dev_* cannot be used printks are converted to pr_*.
> > > > diff --git a/drivers/pps/kapi.c b/drivers/pps/kapi.c
> []
> > > > @@ -80,20 +81,20 @@ struct pps_device *pps_register_source(struct pps_source_info *info,
> > > >  
> > > >  	/* Sanity checks */
> > > >  	if ((info->mode & default_params) != default_params) {
> > > > -		printk(KERN_ERR "pps: %s: unsupported default parameters\n",
> > > > +		pr_err("pps: %s: unsupported default parameters\n",
> > > >  					info->name);
> 
> Perhaps you want to remove the "pps:" prefixes?
> 
> > > > -		printk(KERN_ERR "pps: %s: echo function is not defined\n",
> > > > +		pr_err("pps: %s: echo function is not defined\n",
> []
> > > > -		printk(KERN_ERR "pps: %s: unspecified time format\n",
> > > > +		pr_err("pps: %s: unspecified time format\n",
> []
> > > > -		printk(KERN_ERR "pps: %s: too many PPS sources in the system\n",
> > > > +		pr_err("pps: %s: too many PPS sources in the system\n",
> []
> > > > -		printk(KERN_ERR "pps: %s: unable to create char device\n",
> > > > +		pr_err("%s: unable to create char device\n",
> 
> It's removed here.
> 
> > > > -	printk(KERN_ERR "pps: %s: unable to register source\n", info->name);
> > > > +	pr_err("%s: unable to register source\n", info->name);
> 
> and here.

Thanks! Strange that I overlooked it.

-- 
  Alexander

Download attachment "signature.asc" of type "application/pgp-signature" (491 bytes)

Powered by blists - more mailing lists