From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vyacheslav Dubeyko Subject: [PATCH] hfsplus: make error message in hfsplus_system_write_inode() more compact and detailed Date: Tue, 04 Dec 2012 13:39:34 +0400 Message-ID: <1354613974.2503.2.camel@slavad-ubuntu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Hin-Tak Leung To: linux-fsdevel@vger.kernel.org, Andrew Morton , Christoph Hellwig , Al Viro Return-path: Received: from oproxy12-pub.bluehost.com ([50.87.16.10]:60825 "HELO oproxy12-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753076Ab2LDJjz (ORCPT ); Tue, 4 Dec 2012 04:39:55 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Vyacheslav Dubeyko 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 Signed-off-by: Vyacheslav Dubeyko --- 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; } } --