diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-17 12:45:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-04-01 09:28:46 +0200 |
commit | 715b10c45d7ba3c62e806b6ae149655c986f8558 (patch) | |
tree | 73693086adc5563959abe4700ce22d9faa3d4938 | |
parent | 328dfaabb22fa9241c71731da81558c5e2a3925d (diff) | |
download | barebox-715b10c45d7ba3c62e806b6ae149655c986f8558.tar.gz barebox-715b10c45d7ba3c62e806b6ae149655c986f8558.tar.xz |
imd: Use %zu for printing size_t
To avoid compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/imd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/imd.c b/common/imd.c index 9be07fef74..526308effa 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; |