From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: [PATCH 6/9] Use %pd in Ext4 Date: Tue, 10 Dec 2013 15:26:55 +0000 Message-ID: <20131210152655.4916.77232.stgit@warthog.procyon.org.uk> References: <20131210152612.4916.80435.stgit@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: dhowells@redhat.com, "Theodore Ts'o" , linux-ext4@vger.kernel.org, Andreas Dilger , linux-fsdevel@vger.kernel.org To: viro@zeniv.linux.org.uk Return-path: Received: from mx1.redhat.com ([209.132.183.28]:41965 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753766Ab3LJP1B (ORCPT ); Tue, 10 Dec 2013 10:27:01 -0500 In-Reply-To: <20131210152612.4916.80435.stgit@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Use the new %pd printk() specifier in Ext4 to replace passing of dentry name or dentry name and name length * 2 with just passing the dentry. Signed-off-by: David Howells cc: "Theodore Ts'o" cc: Andreas Dilger cc: linux-ext4@vger.kernel.org --- fs/ext4/namei.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 5a0408d7b114..3e9e70663233 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -1425,9 +1425,8 @@ static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, unsi return ERR_PTR(-EIO); } if (unlikely(ino == dir->i_ino)) { - EXT4_ERROR_INODE(dir, "'%.*s' linked to parent dir", - dentry->d_name.len, - dentry->d_name.name); + EXT4_ERROR_INODE(dir, "'%pd' linked to parent dir", + dentry); return ERR_PTR(-EIO); } inode = ext4_iget(dir->i_sb, ino);