ceph: print name of xattr in __ceph_{get,set}xattr() douts
authorJeff Layton <jlayton@kernel.org>
Tue, 7 Jan 2020 18:12:57 +0000 (13:12 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 27 Jan 2020 15:53:40 +0000 (16:53 +0100)
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/xattr.c

index 98a9a3101cdab49a23ef592519ef41244c02178d..7b8a070a782d3f530c2f8673d865bad3b9b57d8e 100644 (file)
@@ -851,7 +851,7 @@ ssize_t __ceph_getxattr(struct inode *inode, const char *name, void *value,
        req_mask = __get_request_mask(inode);
 
        spin_lock(&ci->i_ceph_lock);
-       dout("getxattr %p ver=%lld index_ver=%lld\n", inode,
+       dout("getxattr %p name '%s' ver=%lld index_ver=%lld\n", inode, name,
             ci->i_xattrs.version, ci->i_xattrs.index_version);
 
        if (ci->i_xattrs.version == 0 ||
@@ -1078,7 +1078,8 @@ retry:
                }
        }
 
-       dout("setxattr %p issued %s\n", inode, ceph_cap_string(issued));
+       dout("setxattr %p name '%s' issued %s\n", inode, name,
+            ceph_cap_string(issued));
        __build_xattrs(inode);
 
        required_blob_size = __get_required_blob_size(ci, name_len, val_len);