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 2021/07/22 11:45:58 UTC
[incubator-nuttx-apps] branch master updated: Fix the printf
warning after blkcnt_t change
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
The following commit(s) were added to refs/heads/master by this push:
new 8ba32a8 Fix the printf warning after blkcnt_t change
8ba32a8 is described below
commit 8ba32a8c16cf339028227ad5929166b6f9db91aa
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu Jul 22 15:40:39 2021 +0800
Fix the printf warning after blkcnt_t change
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
fsutils/mkfatfs/mkfatfs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fsutils/mkfatfs/mkfatfs.c b/fsutils/mkfatfs/mkfatfs.c
index b7aa323..2466e91 100644
--- a/fsutils/mkfatfs/mkfatfs.c
+++ b/fsutils/mkfatfs/mkfatfs.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * apps/fsutils/mkfatfs/writefat.c
+ * apps/fsutils/mkfatfs/mkfatfs.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -154,8 +154,8 @@ static inline int mkfatfs_getgeometry(FAR struct fat_format_s *fmt,
if (fmt->ff_nsectors > geometry.geo_nsectors)
{
ferr("ERROR: User maxblocks (%" PRId32
- ") exceeds blocks on device (%" PRIu32 ")\n",
- fmt->ff_nsectors, geometry.geo_nsectors);
+ ") exceeds blocks on device (%ju)\n",
+ fmt->ff_nsectors, (uintmax_t)geometry.geo_nsectors);
return -EINVAL;
}