ANDROID: overlayfs: fix printk format
authorMark Salyzyn <salyzyn@google.com>
Wed, 6 Nov 2019 17:15:00 +0000 (09:15 -0800)
committerMark Salyzyn <salyzyn@google.com>
Wed, 6 Nov 2019 18:27:03 +0000 (18:27 +0000)
ssize_t value replace %i with %zi.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 133515582
Bug: 136124883
Bug: 129319403
Change-Id: I6e3d579b9e1fe66b2ba35913b6c73b41fdaf03ce

fs/overlayfs/inode.c
fs/overlayfs/namei.c

index 0743fb4cc3c082ce855453d6d994b2aa86972ebe..ce48ed6ba0529c547f79a47abcf389e943c9d920 100644 (file)
@@ -567,7 +567,7 @@ unsigned int ovl_get_nlink(struct dentry *lowerdentry,
        return nlink;
 
 fail:
-       pr_warn_ratelimited("overlayfs: failed to get index nlink (%pd2, err=%i)\n",
+       pr_warn_ratelimited("overlayfs: failed to get index nlink (%pd2, err=%zi)\n",
                            upperdentry, err);
        return fallback;
 }
index 009136588d0c5a9abf9d763b1177101971549164..6071196a7b63b0207face9357504e3d482fc6119 100644 (file)
@@ -85,7 +85,7 @@ err_free:
        kfree(buf);
        return 0;
 fail:
-       pr_warn_ratelimited("overlayfs: failed to get redirect (%i)\n", res);
+       pr_warn_ratelimited("overlayfs: failed to get redirect (%zi)\n", res);
        goto err_free;
 invalid:
        pr_warn_ratelimited("overlayfs: invalid redirect (%s)\n", buf);