From 715b10c45d7ba3c62e806b6ae149655c986f8558 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 17 Feb 2020 12:45:52 +0100 Subject: imd: Use %zu for printing size_t To avoid compiler warnings Signed-off-by: Sascha Hauer --- common/imd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') 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; -- cgit v1.2.3