tools: fix format string in tools/imx8image.c

on 32bit systems with musl libc compiler emits
warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]

to fix this use format length modifier 'z' (size_t) instead of 'l'

Signed-off-by: Milan P. Stanić <mps@arvanta.net>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Milan P. Stanić
2026-01-12 19:12:37 +01:00
committed by Fabio Estevam
parent 9a030f4c51
commit dfebedc612

View File

@@ -815,7 +815,7 @@ static int get_container_image_start_pos(image_t *image_stack, uint32_t align, u
p = calloc(1, size);
if (!p) {
fprintf(stderr, "Fail to alloc %lx memory\n", size);
fprintf(stderr, "Fail to alloc %zx memory\n", size);
exit(EXIT_FAILURE);
}