summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2024-11-03 23:45:05 +0100
committerHeinrich Schuchardt <[email protected]>2024-11-09 09:56:45 +0100
commitac425307f7cf23345f1c33759fbf34662c112276 (patch)
tree1d0b3c232109677eec422d0728395128b9b4e238 /tools
parent7604d874ffaab6ff91e41ad85273fdc5216231b5 (diff)
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 <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/mkeficapsule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c
index 49f5b7849e4..fb6c57f77c1 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;