From: Joe Perches <joe@perches.com>
To: Fabian Frederick <fabf@skynet.be>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
akpm <akpm@linux-foundation.org>
Subject: Re: [PATCH 1/3] FS/EFS: convert printk to pr_foo()
Date: Wed, 14 May 2014 10:13:47 -0700 [thread overview]
Message-ID: <1400087627.30384.2.camel@joe-AO725> (raw)
In-Reply-To: <20140514190837.74607436b964eaf155e1665a@skynet.be>
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.
next prev parent reply other threads:[~2014-05-14 17:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 17:08 Fabian Frederick
2014-05-14 17:13 ` Joe Perches [this message]
2014-05-14 17:19 ` Fabian Frederick
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=1400087627.30384.2.camel@joe-AO725 \
--to=joe@perches.com \
--cc=akpm@linux-foundation.org \
--cc=fabf@skynet.be \
--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
all inboxes | Powered by JetHome®