From nobody Fri Dec 19 11:24:52 2025 Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97FF2326950 for ; Mon, 8 Dec 2025 09:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.99 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765186312; cv=none; b=ZqPyUj26GNCfYw4gqyDzF7ugeAkGGHc8jj2/s//+SG6SRuZBqS/meGwqx+3ofQYFrNsyYu19+k/iOb/8NYwBcRTWh9wRej1+vQqtrUStnT8eHHePZELNK2XPUN4KlWr9mGiBrqSgVJXt3j71ai0BCPz1r38wn+1Q5qmFbvc8uWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765186312; c=relaxed/simple; bh=1nouyPiIpyFGyUlgwKTiaEbRW49+xWHa6fL/wORb+IA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=N0hPBaa+2RjdBo+j8c1c0lr9skWlc+IY6DUBDC1//wPfG1vIGXjcwuTQyneP2ffXEgNl1fgRorSNsU9+Ez2yeMHLN5tqB29G9MsVkMMNsiHU3XvkzQiyhmWrRl4oYVd7Fmbs70ZPDhJqNGYgQKOj7FRWFdJVlkX1mKLZ09sSxvs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=wtI6v+uj; arc=none smtp.client-ip=115.124.30.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="wtI6v+uj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1765186305; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=G9Zj8YF6oErWksGx+Hr3GZX6O0aFLF2DRJ0Uiqt74GU=; b=wtI6v+uj7JVW+VKWyE6HL7QvK04Um6xFJT+zwzs7a9P/rpK1eTYkWl/Sml/OiSWEnDxLsuzjoo7ghJWfMSxqFLy2kbC1fQSwB3R4MILNGb2/v1JTlVkeuRfGPy+Eb/Z6/z54RzqlJy9NHAyjUZvTTdrZ2GKuKEgl6RA9ZRiall4= Received: from localhost(mailfrom:mengferry@linux.alibaba.com fp:SMTPD_---0WuJUYJI_1765186301 cluster:ay36) by smtp.aliyun-inc.com; Mon, 08 Dec 2025 17:31:44 +0800 From: Ferry Meng To: linux-erofs@lists.ozlabs.org Cc: LKML , Ferry Meng Subject: [PATCH v2] erofs: Use %pe format specifier for error pointers Date: Mon, 8 Dec 2025 17:31:38 +0800 Message-Id: <20251208093138.127880-1-mengferry@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" %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 Reviewed-by: Gao Xiang --- 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 =3D>= %u", - alg->name, PTR_ERR(reason), pcl->pos, + erofs_err(be->sb, "failed to decompress (%s) %pe @ pa %llu size %u =3D>= %u", + alg->name, reason, pcl->pos, pcl->pclustersize, pcl->length); err =3D PTR_ERR(reason); } else if (unlikely(reason)) { -- 2.43.5