examples/configdata: Fix some printf format warnings

Fix some printf format warnings by -Wformat.
This commit is contained in:
SPRESENSE 2021-07-04 09:08:39 +09:00 committed by Xiang Xiao
parent 4afa1f1514
commit 931a873d04

View File

@ -24,6 +24,7 @@
#include <nuttx/config.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@ -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;