[PATCH] erofs-utils: fix invalid argument type in erofs_err()
Hongzhen Luo
hongzhen at linux.alibaba.com
Mon Aug 5 12:44:08 AEST 2024
Coverity-id: 502378
Signed-off-by: Hongzhen Luo <hongzhen at linux.alibaba.com>
---
mkfs/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkfs/main.c b/mkfs/main.c
index f9ac4bd..2a34aa3 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -397,7 +397,7 @@ static int parse_extended_opts(const char *opts)
if (!z_erofs_mkfs_features[i].feat) {
erofs_err("unknown extended option %.*s",
- p - token, token);
+ (int)(p - token), token);
return -EINVAL;
}
}
--
2.43.5
More information about the Linux-erofs
mailing list