Re: [PATCH 24/32] media: mediatek: vcodec: Use %pe format specifier

From: AngeloGioacchino Del Regno

Date: Tue Oct 14 2025 - 07:29:39 EST


Il 13/10/25 16:15, Ricardo Ribalda ha scritto:
The %pe format specifier is designed to print error pointers. It prints
a symbolic error name (eg. -EINVAL) and it makes the code simpler by
omitting PTR_ERR().

This patch fixes this cocci report:
./platform/mediatek/vcodec/common/mtk_vcodec_dbgfs.c:187:3-10: WARNING: Consider using %pe to print PTR_ERR()

Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>