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 2020/11/20 15:29:53 UTC
[incubator-nuttx-apps] 01/05: fsutils/mkfatfs/mkfatfs.c: Fix syslog
formats
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/incubator-nuttx-apps.git
commit 2319502ea35837f1062b0727e0e5b45ae2c30d6d
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 20 19:33:06 2020 +0900
fsutils/mkfatfs/mkfatfs.c: Fix syslog formats
---
fsutils/mkfatfs/mkfatfs.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/fsutils/mkfatfs/mkfatfs.c b/fsutils/mkfatfs/mkfatfs.c
index 6b38358..4418576 100644
--- a/fsutils/mkfatfs/mkfatfs.c
+++ b/fsutils/mkfatfs/mkfatfs.c
@@ -141,7 +141,7 @@ static inline int mkfatfs_getgeometry(FAR struct fat_format_s *fmt,
if (!geometry.geo_available || !geometry.geo_writeenabled)
{
- ferr("ERROR: Media is not available\n", ret);
+ ferr("ERROR: Media is not available\n");
return -ENODEV;
}
@@ -153,7 +153,8 @@ static inline int mkfatfs_getgeometry(FAR struct fat_format_s *fmt,
{
if (fmt->ff_nsectors > geometry.geo_nsectors)
{
- ferr("ERROR: User maxblocks (%d) exceeds blocks on device (%d)\n",
+ ferr("ERROR: User maxblocks (%" PRId32
+ ") exceeds blocks on device (%d)\n",
fmt->ff_nsectors, geometry.geo_nsectors);
return -EINVAL;
@@ -188,7 +189,8 @@ static inline int mkfatfs_getgeometry(FAR struct fat_format_s *fmt,
break;
default:
- ferr("ERROR: Unsupported sector size: %d\n", var->fv_sectorsize);
+ ferr("ERROR: Unsupported sector size: %" PRId32 "\n",
+ var->fv_sectorsize);
return -EPERM;
}