From dfebedc6120556be4889b284bc27362a8a237a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=2E=20Stani=C4=87?= Date: Mon, 12 Jan 2026 19:12:37 +0100 Subject: [PATCH] tools: fix format string in tools/imx8image.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ć Reviewed-by: Tom Rini --- tools/imx8image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }