From: Vyacheslav Dubeyko <slava@xxxxxxxxxxx> Subject: [PATCH] hfsplus: make error message in hfsplus_system_write_inode() more compact and detailed The patch simply joins printk and dprint in one printk error message in the case of b-tree write error in hfsplus_system_write_inode() method. Acked-by: Hin-Tak Leung <htl10@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Vyacheslav Dubeyko <slava@xxxxxxxxxxx> --- fs/hfsplus/super.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 09f12ee..2036f58 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -130,10 +130,8 @@ static int hfsplus_system_write_inode(struct inode *inode) if (tree) { int err = hfs_btree_write(tree); if (err) { - printk(KERN_ERR "hfs: unable to write b-tree: %d\n", - err); - dprint(DBG_INODE, "hfsplus_system_write_inode: %lu\n", - inode->i_ino); + printk(KERN_ERR "hfs: b-tree write err: %d, ino %lu\n", + err, inode->i_ino); return err; } } -- -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html