fix compile warnings caused by incorrect variable format in print

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
Michal Lenc 2023-05-27 10:33:31 +02:00 committed by Xiang Xiao
parent 4a8331a019
commit 5f5ffa9380
2 changed files with 3 additions and 2 deletions

View File

@ -1531,7 +1531,7 @@ static int w25qxxxjv_ioctl(FAR struct mtd_dev_s *dev, int cmd,
#endif
ret = OK;
finfo("blocksize: %" PRIu16 " erasesize: %" PRIu32
finfo("blocksize: %" PRIu32 " erasesize: %" PRIu32
" neraseblocks: %" PRIu32 "\n",
geo->blocksize, geo->erasesize, geo->neraseblocks);
}

View File

@ -25,6 +25,7 @@
#include <debug.h>
#include <endian.h>
#include <string.h>
#include <inttypes.h>
#include <nuttx/kmalloc.h>
@ -169,7 +170,7 @@ int parse_mbr_partition(FAR struct partition_state_s *state,
if (buffer[0x1fe] != 0x55 || buffer[0x1ff] != 0xaa)
{
ferr("block %x doesn't contain an EBR signature\n",
ferr("block %" PRIu32 " doesn't contain an EBR signature\n",
ebr_block);
ret = -EINVAL;
goto out;