From: Heinrich Schuchardt Date: Sun, 3 Nov 2024 22:45:05 +0000 (+0100) Subject: tools: mkeficapsule: use %zd to print ssize_t. X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=ac425307f7cf23345f1c33759fbf34662c112276;p=u-boot.git tools: mkeficapsule: use %zd to print ssize_t. For printing a ssize_t variable we must use %zd and not %ld to avoid a -Wformat error on 32-bit systems. Reviewed-by: Ilias Apalodimas Signed-off-by: Heinrich Schuchardt --- diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c index 49f5b7849e..fb6c57f77c 100644 --- a/tools/mkeficapsule.c +++ b/tools/mkeficapsule.c @@ -866,12 +866,12 @@ static struct fdt_header *load_dtb(const char *path) dtb = malloc(dtb_size); if (!dtb) { - fprintf(stderr, "Can't allocated %ld\n", dtb_size); + fprintf(stderr, "Can't allocated %zd\n", dtb_size); return NULL; } if (fread(dtb, dtb_size, 1, f) != 1) { - fprintf(stderr, "Can't read %ld bytes from %s\n", + fprintf(stderr, "Can't read %zd bytes from %s\n", dtb_size, path); free(dtb); return NULL;