diff options
author | Yan, Zheng <zyan@redhat.com> | 2019-05-27 10:15:41 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-07-08 14:01:42 +0200 |
commit | 057297812d1aa0163665532a3e80bf718d6a69d0 (patch) | |
tree | 247e007c1c04b22d104583b9412ffd589e5c6ed4 | |
parent | ceph: fix warning PTR_ERR_OR_ZERO can be used (diff) | |
download | linux-057297812d1aa0163665532a3e80bf718d6a69d0.tar.xz linux-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>
-rw-r--r-- | fs/ceph/xattr.c | 4 |
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; } |