From: Mark Salyzyn Date: Wed, 6 Nov 2019 17:15:00 +0000 (-0800) Subject: ANDROID: overlayfs: fix printk format X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b882c852c967318fe10d741093e4994bc2b475ee;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ANDROID: overlayfs: fix printk format ssize_t value replace %i with %zi. Signed-off-by: Mark Salyzyn Bug: 133515582 Bug: 136124883 Bug: 129319403 Change-Id: I6e3d579b9e1fe66b2ba35913b6c73b41fdaf03ce --- diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c index 0743fb4cc3c0..ce48ed6ba052 100644 --- a/fs/overlayfs/inode.c +++ b/fs/overlayfs/inode.c @@ -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; } diff --git a/fs/overlayfs/namei.c b/fs/overlayfs/namei.c index 009136588d0c..6071196a7b63 100644 --- a/fs/overlayfs/namei.c +++ b/fs/overlayfs/namei.c @@ -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);