aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/xattr.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2019-05-27 16:15:41 +0800
committerIlya Dryomov <idryomov@gmail.com>2019-07-08 14:01:42 +0200
commit057297812d1aa0163665532a3e80bf718d6a69d0 (patch)
tree247e007c1c04b22d104583b9412ffd589e5c6ed4 /fs/ceph/xattr.c
parentceph: fix warning PTR_ERR_OR_ZERO can be used (diff)
downloadlinux-dev-057297812d1aa0163665532a3e80bf718d6a69d0.tar.xz
linux-dev-057297812d1aa0163665532a3e80bf718d6a69d0.zip
ceph: fix debug print format in __set_xattr()
name is not '\0' terminated. Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r--fs/ceph/xattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
index d2fb9f10720c..7eff619f7ac8 100644
--- a/fs/ceph/xattr.c
+++ b/fs/ceph/xattr.c
@@ -507,8 +507,8 @@ static int __set_xattr(struct ceph_inode_info *ci,
dout("__set_xattr_val p=%p\n", p);
}
- dout("__set_xattr_val added %llx.%llx xattr %p %s=%.*s\n",
- ceph_vinop(&ci->vfs_inode), xattr, name, val_len, val);
+ dout("__set_xattr_val added %llx.%llx xattr %p %.*s=%.*s\n",
+ ceph_vinop(&ci->vfs_inode), xattr, name_len, name, val_len, val);
return 0;
}