* [PATCH] ext4: Use %pe to print PTR_ERR() in extents.c
@ 2026-04-24 15:43 Abdellah Ouhbi
0 siblings, 0 replies; only message in thread
From: Abdellah Ouhbi @ 2026-04-24 15:43 UTC (permalink / raw)
To: tytso
Cc: linux-ext4, linux-kernel, skhan, me, linux-kernel-mentees,
Abdellah Ouhbi
Fix coccicheck warning
./extents.c:3272:12-19: WARNING: Consider using %pe to print PTR_ERR()
Replace %ld with %pe and PTR_ERR(path) with path pointer.
The %pe specifier automatically converts error pointers to
human-readable error names instead of raw error codes.
Signed-off-by: Abdellah Ouhbi <abdououhbi1@gmail.com>
---
fs/ext4/extents.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 125f628e738a..91c97af64b31 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3268,8 +3268,8 @@ static struct ext4_ext_path *ext4_split_extent_at(handle_t *handle,
*/
path = ext4_find_extent(inode, ee_block, NULL, flags | EXT4_EX_NOFAIL);
if (IS_ERR(path)) {
- EXT4_ERROR_INODE(inode, "Failed split extent on %u, err %ld",
- split, PTR_ERR(path));
+ EXT4_ERROR_INODE(inode, "Failed split extent on %u, err %pe",
+ split, path);
goto out_path;
}
--
2.51.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-24 15:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24 15:43 [PATCH] ext4: Use %pe to print PTR_ERR() in extents.c Abdellah Ouhbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox