mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] erofs: Use %pe format specifier for error pointers
@ 2025-12-08  9:31 Ferry Meng
  2025-12-08 10:56 ` Gao Xiang
  2026-01-21  5:22 ` Chao Yu
  0 siblings, 2 replies; 3+ messages in thread
From: Ferry Meng @ 2025-12-08  9:31 UTC (permalink / raw)
  To: linux-erofs; +Cc: LKML, Ferry Meng

%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>
---
 fs/erofs/zdata.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c
index 461a929e0825..86cc6ebd8450 100644
--- a/fs/erofs/zdata.c
+++ b/fs/erofs/zdata.c
@@ -1324,8 +1324,8 @@ static int z_erofs_decompress_pcluster(struct z_erofs_backend *be, int err)
 						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)) {
--
2.43.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] erofs: Use %pe format specifier for error pointers
  2025-12-08  9:31 [PATCH v2] erofs: Use %pe format specifier for error pointers Ferry Meng
@ 2025-12-08 10:56 ` Gao Xiang
  2026-01-21  5:22 ` Chao Yu
  1 sibling, 0 replies; 3+ messages in thread
From: Gao Xiang @ 2025-12-08 10:56 UTC (permalink / raw)
  To: Ferry Meng, linux-erofs; +Cc: LKML



On 2025/12/8 17:31, Ferry Meng wrote:
> %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>

Thanks,
Gao Xiang

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] erofs: Use %pe format specifier for error pointers
  2025-12-08  9:31 [PATCH v2] erofs: Use %pe format specifier for error pointers Ferry Meng
  2025-12-08 10:56 ` Gao Xiang
@ 2026-01-21  5:22 ` Chao Yu
  1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2026-01-21  5:22 UTC (permalink / raw)
  To: Ferry Meng, linux-erofs; +Cc: chao, LKML

On 2025/12/8 17:31, Ferry Meng wrote:
> %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: Chao Yu <chao@kernel.org>

Thanks,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-21  5:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-08  9:31 [PATCH v2] erofs: Use %pe format specifier for error pointers Ferry Meng
2025-12-08 10:56 ` Gao Xiang
2026-01-21  5:22 ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®