diff options
author | Yan, Zheng <zyan@redhat.com> | 2019-05-27 16:15:41 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-07-08 14:01:42 +0200 |
commit | 057297812d1aa0163665532a3e80bf718d6a69d0 (patch) | |
tree | 247e007c1c04b22d104583b9412ffd589e5c6ed4 /fs/ceph | |
parent | 03af439ad9408c28e53b880daa56590dda1c8472 (diff) | |
download | linux-057297812d1aa0163665532a3e80bf718d6a69d0.tar.gz linux-057297812d1aa0163665532a3e80bf718d6a69d0.tar.bz2 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>
Diffstat (limited to 'fs/ceph')
-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; } |