summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMilan P. Stanić <[email protected]>2026-01-12 19:12:37 +0100
committerFabio Estevam <[email protected]>2026-01-17 15:01:00 -0300
commitdfebedc6120556be4889b284bc27362a8a237a00 (patch)
treec93ba81287e3837ac27000533bf8ea536bdf45e0 /tools
parent9a030f4c5151056f16f6c2300de7a0ad6f2a812e (diff)
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ć <[email protected]> Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/imx8image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/imx8image.c b/tools/imx8image.c
index 3cea536b8e8..84f46bcaf37 100644
--- a/tools/imx8image.c
+++ b/tools/imx8image.c
@@ -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);
}