summaryrefslogtreecommitdiffstats
path: root/fs/efs/file.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-05 01:12:11 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-05 01:54:20 +0200
commit179b87fb186b524ec75a5d54c0d7f25e8d559415 (patch)
treea1bebef4ecda08ecb580a4eb3f632e0306ab17de /fs/efs/file.c
parentscripts/checkpatch.pl: device_initcall is not the only __initcall substitute (diff)
downloadlinux-179b87fb186b524ec75a5d54c0d7f25e8d559415.tar.xz
linux-179b87fb186b524ec75a5d54c0d7f25e8d559415.zip
fs/efs: convert printk to pr_foo()
Convert all except KERN_DEBUG (pr_debug doesn't work the same as printk(KERN_DEBUG and requires special check) Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/efs/file.c')
-rw-r--r--fs/efs/file.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/efs/file.c b/fs/efs/file.c
index 1ccb364ffa63..a75c7100aa01 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);
@@ -38,7 +38,7 @@ int efs_get_block(struct inode *inode, sector_t iblock,
int efs_bmap(struct inode *inode, efs_block_t block) {
if (block < 0) {
- printk(KERN_WARNING "EFS: bmap(): block < 0\n");
+ pr_warn("EFS: bmap(): block < 0\n");
return 0;
}
@@ -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
return 0;
}