]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
erofs: Use %pe format specifier for error pointers
authorFerry Meng <mengferry@linux.alibaba.com>
Mon, 8 Dec 2025 09:31:38 +0000 (17:31 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 16:00:10 +0000 (00:00 +0800)
%pe will print a symbolic error name (e.g,. -ENOMEM), opposed to the
raw errno (e.g,. -12) produced by PTR_ERR().

Signed-off-by: Ferry Meng <mengferry@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/zdata.c

index 3d31f7840ca04de30e137735886aaade190e99d4..70e1597dec8a60c1ee067dc299966365293b1d92 100644 (file)
@@ -1324,8 +1324,8 @@ static int z_erofs_decompress_pcluster(struct z_erofs_backend *be, bool eio)
                                                GFP_NOWAIT | __GFP_NORETRY
                                 }, be->pagepool);
                if (IS_ERR(reason)) {
-                       erofs_err(be->sb, "failed to decompress (%s) %ld @ pa %llu size %u => %u",
-                                 alg->name, PTR_ERR(reason), pcl->pos,
+                       erofs_err(be->sb, "failed to decompress (%s) %pe @ pa %llu size %u => %u",
+                                 alg->name, reason, pcl->pos,
                                  pcl->pclustersize, pcl->length);
                        err = PTR_ERR(reason);
                } else if (unlikely(reason)) {