summaryrefslogtreecommitdiff
path: root/fs/9p
diff options
context:
space:
mode:
authorDuane Griffin <duaneg@dghda.com>2008-12-19 16:45:21 -0600
committerEric Van Hensbergen <ericvh@gmail.com>2008-12-19 16:45:21 -0600
commit6ff232070a1088807e24f657b5d6f299f1ec32f6 (patch)
treef6affcc42b834f9a20fa9e70eb30fc6a7ff63e54 /fs/9p
parent9a1d1035631ad8b3edf301b273c30bdfc75de01e (diff)
downloadkernel-common-6ff232070a1088807e24f657b5d6f299f1ec32f6.tar.gz
kernel-common-6ff232070a1088807e24f657b5d6f299f1ec32f6.tar.bz2
kernel-common-6ff232070a1088807e24f657b5d6f299f1ec32f6.zip
9p: Remove potentially bad parameter from function entry debug print.
Signed-off-by: Duane Griffin <duaneg@dghda.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 8314d3f43b71..7c7352838098 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1022,7 +1022,8 @@ v9fs_vfs_put_link(struct dentry *dentry, struct nameidata *nd, void *p)
{
char *s = nd_get_link(nd);
- P9_DPRINTK(P9_DEBUG_VFS, " %s %s\n", dentry->d_name.name, s);
+ P9_DPRINTK(P9_DEBUG_VFS, " %s %s\n", dentry->d_name.name,
+ IS_ERR(s) ? "<error>" : s);
if (!IS_ERR(s))
__putname(s);
}