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>
此提交包含在:
@@ -386,7 +386,7 @@ struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid)
|
||||
struct hfs_bnode *node;
|
||||
|
||||
if (cnid >= tree->node_count) {
|
||||
printk(KERN_ERR "hfs: request for non-existent node "
|
||||
pr_err("request for non-existent node "
|
||||
"%d in B*Tree\n",
|
||||
cnid);
|
||||
return NULL;
|
||||
@@ -409,7 +409,7 @@ static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid)
|
||||
loff_t off;
|
||||
|
||||
if (cnid >= tree->node_count) {
|
||||
printk(KERN_ERR "hfs: request for non-existent node "
|
||||
pr_err("request for non-existent node "
|
||||
"%d in B*Tree\n",
|
||||
cnid);
|
||||
return NULL;
|
||||
@@ -588,7 +588,7 @@ struct hfs_bnode *hfs_bnode_create(struct hfs_btree *tree, u32 num)
|
||||
node = hfs_bnode_findhash(tree, num);
|
||||
spin_unlock(&tree->hash_lock);
|
||||
if (node) {
|
||||
printk(KERN_CRIT "new node %u already hashed?\n", num);
|
||||
pr_crit("new node %u already hashed?\n", num);
|
||||
WARN_ON(1);
|
||||
return node;
|
||||
}
|
||||
|
新增問題並參考
封鎖使用者