ceph: fix debug print format in __set_xattr()
authorYan, Zheng <zyan@redhat.com>
Mon, 27 May 2019 08:15:41 +0000 (16:15 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:42 +0000 (14:01 +0200)
name is not '\0' terminated.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/xattr.c

index d2fb9f1..7eff619 100644 (file)
@@ -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;
 }