diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:36:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:10 -0400 |
commit | b7cb1ce2205c45bf6d356cd358b52adb55bbcf5d (patch) | |
tree | 8ce78fd4de9d804015efe5e94c56f993c50db4b3 /fs/hpfs/inode.c | |
parent | 45641c82c1e3aeaef72d693b24938da45ffb0cfc (diff) |
fs/hpfs: convert printk to pr_foo()
No level printk in hptfs_error converted to pr_err (others to pr_warn or
pr_info)
This patch also fixes if/then/else checkpatch warnings
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hpfs/inode.c')
-rw-r--r-- | fs/hpfs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c index 50a427313835..42c29086c699 100644 --- a/fs/hpfs/inode.c +++ b/fs/hpfs/inode.c | |||
@@ -183,7 +183,8 @@ void hpfs_write_inode(struct inode *i) | |||
183 | struct inode *parent; | 183 | struct inode *parent; |
184 | if (i->i_ino == hpfs_sb(i->i_sb)->sb_root) return; | 184 | if (i->i_ino == hpfs_sb(i->i_sb)->sb_root) return; |
185 | if (hpfs_inode->i_rddir_off && !atomic_read(&i->i_count)) { | 185 | if (hpfs_inode->i_rddir_off && !atomic_read(&i->i_count)) { |
186 | if (*hpfs_inode->i_rddir_off) printk("HPFS: write_inode: some position still there\n"); | 186 | if (*hpfs_inode->i_rddir_off) |
187 | pr_warn("HPFS: write_inode: some position still there\n"); | ||
187 | kfree(hpfs_inode->i_rddir_off); | 188 | kfree(hpfs_inode->i_rddir_off); |
188 | hpfs_inode->i_rddir_off = NULL; | 189 | hpfs_inode->i_rddir_off = NULL; |
189 | } | 190 | } |