From: David Howells Subject: [PATCH 9/9] Use %pd in general VFS code Date: Tue, 10 Dec 2013 15:27:16 +0000 Message-ID: <20131210152716.4916.61293.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, linux-fsdevel@vger.kernel.org To: viro@zeniv.linux.org.uk Return-path: Received: from mx1.redhat.com ([209.132.183.28]:11159 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753766Ab3LJP1S (ORCPT ); Tue, 10 Dec 2013 10:27:18 -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 general VFS code to replace passing of dentry name or dentry name and name length * 2 with just passing the dentry. Signed-off-by: David Howells --- fs/dcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index 4bdb300b16e2..87d38d34fe1c 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2768,9 +2768,9 @@ struct dentry *d_materialise_unique(struct dentry *dentry, struct inode *inode) if (IS_ERR(actual)) { if (PTR_ERR(actual) == -ELOOP) pr_warn_ratelimited( - "VFS: Lookup of '%s' in %s %s" + "VFS: Lookup of '%pd' in %s %s" " would have caused loop\n", - dentry->d_name.name, + dentry, inode->i_sb->s_type->name, inode->i_sb->s_id); dput(alias);