]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
tools: amlimage: include <inttypes.h>
authorRobert Marko <robert.marko@sartura.hr>
Tue, 13 Jan 2026 11:07:38 +0000 (12:07 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 19 Jan 2026 19:08:19 +0000 (13:08 -0600)
PRIuN, PRIxN, etc macros are defined in <inttypes.h>, without it being
included errors like:
tools/amlimage.c:124:38: error: expected ‘)’ before ‘PRIu8’
tools/amlimage.c:126:31: error: expected ‘)’ before ‘PRIu32’

Can be hit depending on the host compiler and HOSTCFLAGS.

Fixes: 18c1654567dc ("tools: mkimage: Add Amlogic Boot Image type")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Ferass El Hafidi <funderscore@postmarketos.org>
tools/amlimage.c

index ecb06bc535bf57c728580684865d2d75d4aaf778..bc6e19b9c24a583fa217e7cae3fc765539824c6a 100644 (file)
@@ -2,6 +2,7 @@
 // Copyright Contributors to the U-Boot project.
 
 #include "imagetool.h"
+#include <inttypes.h>
 #include <u-boot/sha256.h>
 
 /*