aboutsummaryrefslogtreecommitdiffstats
path: root/fs/efs/namei.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-04 19:12:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:54:20 -0400
commit179b87fb186b524ec75a5d54c0d7f25e8d559415 (patch)
treea1bebef4ecda08ecb580a4eb3f632e0306ab17de /fs/efs/namei.c
parentae3ccc4678fec2d270a4c54981831c7b8a2da9cd (diff)
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/namei.c')
-rw-r--r--fs/efs/namei.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/efs/namei.c b/fs/efs/namei.c
index 96f66d213a19..527d0b914915 100644
--- a/fs/efs/namei.c
+++ b/fs/efs/namei.c
@@ -23,20 +23,20 @@ static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len)
23 efs_block_t block; 23 efs_block_t block;
24 24
25 if (inode->i_size & (EFS_DIRBSIZE-1)) 25 if (inode->i_size & (EFS_DIRBSIZE-1))
26 printk(KERN_WARNING "EFS: WARNING: find_entry(): directory size not a multiple of EFS_DIRBSIZE\n"); 26 pr_warn("EFS: WARNING: find_entry(): directory size not a multiple of EFS_DIRBSIZE\n");
27 27
28 for(block = 0; block < inode->i_blocks; block++) { 28 for(block = 0; block < inode->i_blocks; block++) {
29 29
30 bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); 30 bh = sb_bread(inode->i_sb, efs_bmap(inode, block));
31 if (!bh) { 31 if (!bh) {
32 printk(KERN_ERR "EFS: find_entry(): failed to read dir block %d\n", block); 32 pr_err("EFS: find_entry(): failed to read dir block %d\n", block);
33 return 0; 33 return 0;
34 } 34 }
35 35
36 dirblock = (struct efs_dir *) bh->b_data; 36 dirblock = (struct efs_dir *) bh->b_data;
37 37
38 if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) { 38 if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) {
39 printk(KERN_ERR "EFS: find_entry(): invalid directory block\n"); 39 pr_err("EFS: find_entry(): invalid directory block\n");
40 brelse(bh); 40 brelse(bh);
41 return(0); 41 return(0);
42 } 42 }