Skip to contentSkip to conversation

erofs-utils: fix invalid argument type in erofs_err()

PATCH In review Hongzhen Luo 2 participants 2 messages Aug 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 erofs-utils: fix invalid argument type in erofs_err()

Coverity-id: 502378

---
 mkfs/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mkfs/main.c +1 -1
index f9ac4bd..2a34aa3 100644
@@ -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;
 			}
 		}
Signature · 1 line
2.43.5