summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-02-17 12:45:52 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-01 09:28:46 +0200
commit715b10c45d7ba3c62e806b6ae149655c986f8558 (patch)
tree73693086adc5563959abe4700ce22d9faa3d4938 /common
parent328dfaabb22fa9241c71731da81558c5e2a3925d (diff)
downloadbarebox-715b10c45d7ba3c62e806b6ae149655c986f8558.tar.gz
imd: Use %zu for printing size_t
To avoid compiler warnings Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/imd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/imd.c b/common/imd.c
index 9be07fe..526308e 100644
--- a/common/imd.c
+++ b/common/imd.c
@@ -349,7 +349,7 @@ static int imd_calculate_crc32(void *input, const struct imd_header *imd_start,
input += end_ofs;
*crc = crc32(*crc, input, size - end_ofs);
- debug("Calculated checksum from %d to %d: 0x%08x\n", end_ofs,
+ debug("Calculated checksum from %d to %zu: 0x%08x\n", end_ofs,
end_ofs + (size - end_ofs), *crc);
return 0;