You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2020/12/01 06:45:13 UTC

[incubator-nuttx-apps] 01/03: fsutils/mkfatfs/configfat.c: Fix syslog formats

This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit e9a48d174ea04e692c25395c803fa54f2ca454ab
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Dec 1 14:01:13 2020 +0900

    fsutils/mkfatfs/configfat.c: Fix syslog formats
---
 fsutils/mkfatfs/configfat.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/fsutils/mkfatfs/configfat.c b/fsutils/mkfatfs/configfat.c
index 687fa50..eac5ac2 100644
--- a/fsutils/mkfatfs/configfat.c
+++ b/fsutils/mkfatfs/configfat.c
@@ -1013,20 +1013,20 @@ int mkfatfs_configfatfs(FAR struct fat_format_s *fmt,
   /* Describe the configured filesystem */
 
 #ifdef CONFIG_DEBUG_FEATURES
-  finfo("Sector size:          %d bytes\n",    var->fv_sectorsize);
-  finfo("Number of sectors:    %d sectors\n",  fmt->ff_nsectors);
+  finfo("Sector size:          %" PRId32 " bytes\n",    var->fv_sectorsize);
+  finfo("Number of sectors:    %" PRId32 " sectors\n",  fmt->ff_nsectors);
   finfo("FAT size:             %d bits\n",     var->fv_fattype);
   finfo("Number FATs:          %d\n",          fmt->ff_nfats);
   finfo("Sectors per cluster:  %d sectors\n",  1 << fmt->ff_clustshift);
-  finfo("FS size:              %d sectors\n",  var->fv_nfatsects);
-  finfo("                      %d clusters\n", var->fv_nclusters);
+  finfo("FS size:              %" PRId32 " sectors\n",  var->fv_nfatsects);
+  finfo("                      %" PRId32 " clusters\n", var->fv_nclusters);
 
   if (var->fv_fattype != 32)
     {
        finfo("Root directory slots: %d\n", fmt->ff_rootdirentries);
     }
 
-  finfo("Volume ID:            %08x\n", fmt->ff_volumeid);
+  finfo("Volume ID:            %08" PRIx32 "\n", fmt->ff_volumeid);
   finfo("Volume Label:         \"%c%c%c%c%c%c%c%c%c%c%c\"\n",
     fmt->ff_volumelabel[0], fmt->ff_volumelabel[1], fmt->ff_volumelabel[2],
     fmt->ff_volumelabel[3], fmt->ff_volumelabel[4], fmt->ff_volumelabel[5],