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/12/13 14:52:39 UTC

[incubator-nuttx] 01/02: drivers/mtd/gd25.c: fix finfo format warning

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.git

commit 66bdec675470cc0dd42df31366b6f1393a5e37c9
Author: Juha Niskanen <ju...@haltian.com>
AuthorDate: Sun Dec 13 15:44:21 2020 +0200

    drivers/mtd/gd25.c: fix finfo format warning
    
    Signed-off-by: Juha Niskanen <ju...@haltian.com>
---
 drivers/mtd/gd25.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/gd25.c b/drivers/mtd/gd25.c
index ef1a99e..9c0b5b2 100644
--- a/drivers/mtd/gd25.c
+++ b/drivers/mtd/gd25.c
@@ -26,7 +26,7 @@
 
 #include <sys/types.h>
 
-#include <stdint.h>
+#include <inttypes.h>
 #include <stdbool.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -938,7 +938,8 @@ static int gd25_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
               geo->neraseblocks = priv->nsectors;
               ret               = OK;
 
-              finfo("blocksize: %d erasesize: %d neraseblocks: %d\n",
+              finfo("blocksize: %" PRIu32 " erasesize: %" PRIu32
+                    " neraseblocks: %" PRIu32 "\n",
                     geo->blocksize, geo->erasesize, geo->neraseblocks);
             }
         }