[PATCH] hfs: cleanup HFS prints
Add the log level and a "hfs: " prefix to all kernel prints. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
634725a929
commit
7cf3cc3036
@ -198,7 +198,7 @@ void hfs_bnode_unlink(struct hfs_bnode *node)
|
||||
|
||||
// move down?
|
||||
if (!node->prev && !node->next) {
|
||||
printk("hfs_btree_del_level\n");
|
||||
printk(KERN_DEBUG "hfs_btree_del_level\n");
|
||||
}
|
||||
if (!node->parent) {
|
||||
tree->root = 0;
|
||||
@ -219,7 +219,7 @@ struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid)
|
||||
struct hfs_bnode *node;
|
||||
|
||||
if (cnid >= tree->node_count) {
|
||||
printk("HFS: request for non-existent node %d in B*Tree\n", cnid);
|
||||
printk(KERN_ERR "hfs: request for non-existent node %d in B*Tree\n", cnid);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -242,7 +242,7 @@ static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid)
|
||||
loff_t off;
|
||||
|
||||
if (cnid >= tree->node_count) {
|
||||
printk("HFS: request for non-existent node %d in B*Tree\n", cnid);
|
||||
printk(KERN_ERR "hfs: request for non-existent node %d in B*Tree\n", cnid);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user