From 5f5ffa9380308b4e1d8b4ffd193ebf7effd5144f Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Sat, 27 May 2023 10:33:31 +0200 Subject: [PATCH] fix compile warnings caused by incorrect variable format in print Signed-off-by: Michal Lenc --- drivers/mtd/w25qxxxjv.c | 2 +- fs/partition/fs_mbr.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/w25qxxxjv.c b/drivers/mtd/w25qxxxjv.c index 488942a973a..56929267231 100644 --- a/drivers/mtd/w25qxxxjv.c +++ b/drivers/mtd/w25qxxxjv.c @@ -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); } diff --git a/fs/partition/fs_mbr.c b/fs/partition/fs_mbr.c index 84a5f665ae7..2e2effcd784 100644 --- a/fs/partition/fs_mbr.c +++ b/fs/partition/fs_mbr.c @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -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;