diff options
author | Joe Perches <joe@perches.com> | 2013-04-30 18:27:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 20:04:05 -0400 |
commit | d614267329f2bee7a082ed8781c581c0f3aaa808 (patch) | |
tree | edade57808a2a2e327daf83991a31a76660b7a41 /fs/hfs/bnode.c | |
parent | c2b3e1f76e5c90215bc7f740b376c0220eb8a8e3 (diff) |
hfs/hfsplus: convert printks to pr_<level>
Use a more current logging style.
Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
hfsplus now uses "hfsplus: " for all messages.
Coalesce formats.
Prefix debugging messages too.
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Hin-Tak Leung <htl10@users.sourceforge.net>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfs/bnode.c')
-rw-r--r-- | fs/hfs/bnode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hfs/bnode.c b/fs/hfs/bnode.c index 869391902575..f3b1a15ccd59 100644 --- a/fs/hfs/bnode.c +++ b/fs/hfs/bnode.c | |||
@@ -221,7 +221,7 @@ struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid) | |||
221 | struct hfs_bnode *node; | 221 | struct hfs_bnode *node; |
222 | 222 | ||
223 | if (cnid >= tree->node_count) { | 223 | if (cnid >= tree->node_count) { |
224 | printk(KERN_ERR "hfs: request for non-existent node %d in B*Tree\n", cnid); | 224 | pr_err("request for non-existent node %d in B*Tree\n", cnid); |
225 | return NULL; | 225 | return NULL; |
226 | } | 226 | } |
227 | 227 | ||
@@ -244,7 +244,7 @@ static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid) | |||
244 | loff_t off; | 244 | loff_t off; |
245 | 245 | ||
246 | if (cnid >= tree->node_count) { | 246 | if (cnid >= tree->node_count) { |
247 | printk(KERN_ERR "hfs: request for non-existent node %d in B*Tree\n", cnid); | 247 | pr_err("request for non-existent node %d in B*Tree\n", cnid); |
248 | return NULL; | 248 | return NULL; |
249 | } | 249 | } |
250 | 250 | ||