aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/dns313-header.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/firmware-utils/src/dns313-header.c')
-rw-r--r--tools/firmware-utils/src/dns313-header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/firmware-utils/src/dns313-header.c b/tools/firmware-utils/src/dns313-header.c
index 3c72b09bfb..ab34dd6d02 100644
--- a/tools/firmware-utils/src/dns313-header.c
+++ b/tools/firmware-utils/src/dns313-header.c
@@ -155,7 +155,7 @@ int main(int argc, char **argv)
/* File + extended header size */
bufsize = filesize + HEADER_SIZE;
- printf("Allocate %08x bytes\n", bufsize);
+ printf("Allocate %08zx bytes\n", bufsize);
buffer = malloc(bufsize);
if (!buffer) {
printf("OOM: could not allocate buffer\n");
@@ -223,7 +223,7 @@ int main(int argc, char **argv)
be_wr(buffer + OFFSET_HCRC, sum);
printf("header checksum: 0x%08x\n", sum);
- printf("OUTFILE: %s, size: %08x bytes\n", pathout, bufsize);
+ printf("OUTFILE: %s, size: %08zx bytes\n", pathout, bufsize);
fdout = open(pathout, O_RDWR|O_CREAT|O_TRUNC,S_IRWXU|S_IRGRP);
if (!fdout) {
printf("ERROR: could not open output file\n");