From 931a873d047081297a9e7184e5349e0fb324d294 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Sun, 4 Jul 2021 09:08:39 +0900 Subject: [PATCH] examples/configdata: Fix some printf format warnings Fix some printf format warnings by -Wformat. --- examples/configdata/configdata_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/configdata/configdata_main.c b/examples/configdata/configdata_main.c index 700b86499..6d230b201 100644 --- a/examples/configdata/configdata_main.c +++ b/examples/configdata/configdata_main.c @@ -24,6 +24,7 @@ #include +#include #include #include #include @@ -378,7 +379,8 @@ static inline int crc = crc32(g_entryimage, entry->len); if (crc != entry->crc) { - printf("ERROR: Bad CRC: %u vs %u\n", crc, entry->crc); + printf("ERROR: Bad CRC: %" PRIu32 " vs %" PRIu32 "\n", + crc, entry->crc); printf(" Entry id: %04X\n", entry->id); printf(" Entry size: %d\n", entry->len); return ERROR;