mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
fix compile warnings caused by incorrect variable format in print
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
@@ -1531,7 +1531,7 @@ static int w25qxxxjv_ioctl(FAR struct mtd_dev_s *dev, int cmd,
|
|||||||
#endif
|
#endif
|
||||||
ret = OK;
|
ret = OK;
|
||||||
|
|
||||||
finfo("blocksize: %" PRIu16 " erasesize: %" PRIu32
|
finfo("blocksize: %" PRIu32 " erasesize: %" PRIu32
|
||||||
" neraseblocks: %" PRIu32 "\n",
|
" neraseblocks: %" PRIu32 "\n",
|
||||||
geo->blocksize, geo->erasesize, geo->neraseblocks);
|
geo->blocksize, geo->erasesize, geo->neraseblocks);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include <nuttx/kmalloc.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)
|
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);
|
ebr_block);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in New Issue
Block a user