You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2024/10/26 21:08:57 UTC

(nuttx-apps) branch master updated: fix compile warning for fsutils inifile.c

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3e54ea0aa fix compile warning for fsutils inifile.c
3e54ea0aa is described below

commit 3e54ea0aae5280043391feccb0dc67d1e4803c08
Author: liuwei35 <li...@xiaomi.com>
AuthorDate: Fri Dec 22 19:47:58 2023 +0800

    fix compile warning for fsutils inifile.c
    
    Signed-off-by: liuwei35 <li...@xiaomi.com>
---
 fsutils/inifile/inifile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fsutils/inifile/inifile.c b/fsutils/inifile/inifile.c
index afd105785..9bd903185 100644
--- a/fsutils/inifile/inifile.c
+++ b/fsutils/inifile/inifile.c
@@ -603,7 +603,7 @@ long inifile_read_integer(INIHANDLE handle,
 
   /* Assume failure to find the requested value */
 
-  iniinfo("section=\"%s\" variable=\"%s\" defvalue=%d\n",
+  iniinfo("section=\"%s\" variable=\"%s\" defvalue=%ld\n",
           section, variable, defvalue);
 
   /* Get the value as a string first */
@@ -624,7 +624,7 @@ long inifile_read_integer(INIHANDLE handle,
 
   /* Return the value that we found. */
 
-  iniinfo("Returning %d\n", ret);
+  iniinfo("Returning %ld\n", ret);
   return ret;
 }