Skip to contentSkip to conversation

hfsplus: make error message in hfsplus_system_write_inode() more compact and detailed

PATCH New Vyacheslav Dubeyko 1 participant 1 message Dec 4, 2012

Subsystems (2)
lore
Share & tools
lore

Vyacheslav Dubeyko

author maintainer
#0 lore raw

PATCH 1/1 hfsplus: make error message in hfsplus_system_write_inode() more compact and detailed

From: Vyacheslav Dubeyko <[email protected]>
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.

---
 fs/hfsplus/super.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
fs/hfsplus/super.c +2 -4
index 09f12ee..2036f58 100644
@@ -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;
 		}
 	}

--