You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/11/14 17:08:14 UTC
(nuttx) branch master updated: s25fl1: fix compile warnings caused by incorrect variable print format
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 0554b975da s25fl1: fix compile warnings caused by incorrect variable print format
0554b975da is described below
commit 0554b975daac5858080df9367f6386e3ff3efd7f
Author: Michal Lenc <mi...@seznam.cz>
AuthorDate: Tue Nov 14 16:09:01 2023 +0100
s25fl1: fix compile warnings caused by incorrect variable print format
Signed-off-by: Michal Lenc <mi...@seznam.cz>
---
drivers/mtd/s25fl1.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/s25fl1.c b/drivers/mtd/s25fl1.c
index 9b75a10a80..7c0e04f520 100644
--- a/drivers/mtd/s25fl1.c
+++ b/drivers/mtd/s25fl1.c
@@ -36,6 +36,7 @@
#include <assert.h>
#include <errno.h>
#include <debug.h>
+#include <inttypes.h>
#include <nuttx/kmalloc.h>
#include <nuttx/signal.h>
@@ -1018,7 +1019,7 @@ static int s25fl1_write_page(struct s25fl1_dev_s *priv,
if (ret < 0)
{
- ferr("ERROR: QSPI_MEMORY failed writing address=%06x\n",
+ ferr("ERROR: QSPI_MEMORY failed writing address=%06" PRIxOFF "\n",
address);
return ret;
}
@@ -1443,7 +1444,8 @@ static int s25fl1_ioctl(FAR struct mtd_dev_s *dev,
#endif
ret = OK;
- finfo("blocksize: %d erasesize: %d neraseblocks: %d\n",
+ finfo("blocksize: %" PRIu32 " erasesize: %" PRIu32
+ " neraseblocks: %" PRIu32 "\n",
geo->blocksize, geo->erasesize, geo->neraseblocks);
}
}