diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
| -rw-r--r-- | fs/9p/vfs_inode.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 8314d3f43b7..2dfcf5487ef 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -963,7 +963,8 @@ static int v9fs_vfs_readlink(struct dentry *dentry, char __user * buffer,  	if (buflen > PATH_MAX)  		buflen = PATH_MAX; -	P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_iname, dentry); +	P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_name.name, +									dentry);  	retval = v9fs_readlink(dentry, link, buflen); @@ -1022,7 +1023,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);  }  |