linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 7/9] Use %pd in NFSD
       [not found] <20131210152612.4916.80435.stgit@warthog.procyon.org.uk>
@ 2013-12-10 15:27 ` David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2013-12-10 15:27 UTC (permalink / raw)
  To: viro; +Cc: dhowells, linux-fsdevel, linux-nfs

Use the new %pd printk() specifier in NFSD to replace passing of dentry name or
dentry name and name length * 2 with just passing the dentry.

Signed-off-by: David Howells <dhowells@redhat.com>
cc "J. Bruce Fields" <bfields@fieldses.org>
cc: linux-nfs@vger.kernel.org
---

 fs/nfsd/nfs4xdr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index ee7237f99f54..34342c9bc09b 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1884,7 +1884,7 @@ static __be32 nfsd4_encode_path(const struct path *root,
 		}
 		WRITE32(len);
 		WRITEMEM(dentry->d_name.name, len);
-		dprintk("/%s", dentry->d_name.name);
+		dprintk("/%pd", dentry);
 		spin_unlock(&dentry->d_lock);
 		dput(dentry);
 		ncomponents--;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-10 15:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20131210152612.4916.80435.stgit@warthog.procyon.org.uk>
2013-12-10 15:27 ` [PATCH 7/9] Use %pd in NFSD David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).