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]
Date:	Wed, 14 May 2014 19:19:16 +0200
From:	Fabian Frederick <fabf@...net.be>
To:	Joe Perches <joe@...ches.com>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>,
	akpm <akpm@...ux-foundation.org>
Subject: Re: [PATCH 1/3] FS/EFS: convert printk to pr_foo()

On Wed, 14 May 2014 10:13:47 -0700
Joe Perches <joe@...ches.com> wrote:

> On Wed, 2014-05-14 at 19:08 +0200, Fabian Frederick wrote:
> > Convert all except KERN_DEBUG
> 
> trivial note:
> 
> > diff --git a/fs/efs/file.c b/fs/efs/file.c
> > index 1ccb364..a75c710 100644
> > --- a/fs/efs/file.c
> > +++ b/fs/efs/file.c
> > @@ -22,7 +22,7 @@ int efs_get_block(struct inode *inode, sector_t iblock,
> >  		/*
> >  		 * i have no idea why this happens as often as it does
> >  		 */
> > -		printk(KERN_WARNING "EFS: bmap(): block %d >= %ld (filesize %ld)\n",
> > +		pr_warn("EFS: bmap(): block %d >= %ld (filesize %ld)\n",
> >  			block,
> >  			inode->i_blocks,
> >  			inode->i_size);
> []
> > @@ -48,10 +48,8 @@ int efs_bmap(struct inode *inode, efs_block_t block) {
> >  		/*
> >  		 * i have no idea why this happens as often as it does
> >  		 */
> > -		printk(KERN_WARNING "EFS: bmap(): block %d >= %ld (filesize %ld)\n",
> > -			block,
> > -			inode->i_blocks,
> > -			inode->i_size);
> > +		pr_warn("EFS: bmap(): block %d >= %ld (filesize %ld)\n",
> > +			block, inode->i_blocks, inode->i_size);
> >  #endif
> 
> Please use the same form for both blocks,
> arguments on a single line.
> 
> []
> 
> > @@ -130,7 +130,7 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
> >  	for(i = 0; i < EFS_DIRECTEXTENTS; i++) {
> >  		extent_copy(&(efs_inode->di_u.di_extents[i]), &(in->extents[i]));
> >  		if (i < in->numextents && in->extents[i].cooked.ex_magic != 0) {
> > -			printk(KERN_WARNING "EFS: extent %d has bad magic number in inode %lu\n", i, inode->i_ino);
> > +			pr_warn("EFS: extent %d has bad magic number in inode %lu\n", i, inode->i_ino);
> 
> Might as well wrap to 80 cols here.
This is fixed later when fmt is removed (if it's still > 80 cols).

> 
> 


-- 
Fabian Frederick <fabf@...net.be>
--
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