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 2022/10/30 15:03:52 UTC

[incubator-nuttx] 11/22: Fix chip/cxd56_farapi.c:285:14: error: format specifies type 'int' but the argument has type 'unsigned long' [-Werror,-Wformat]

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/incubator-nuttx.git

commit c6ae5e42c0514f5f5e839112f29257a81a0ee7fa
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Oct 26 11:11:10 2022 +0800

    Fix chip/cxd56_farapi.c:285:14: error: format specifies type 'int' but the argument has type 'unsigned long' [-Werror,-Wformat]
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/arm/src/cxd56xx/cxd56_farapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/cxd56xx/cxd56_farapi.c b/arch/arm/src/cxd56xx/cxd56_farapi.c
index dc0b76a102..ec53266f57 100644
--- a/arch/arm/src/cxd56xx/cxd56_farapi.c
+++ b/arch/arm/src/cxd56xx/cxd56_farapi.c
@@ -281,7 +281,7 @@ void cxd56_farapiinitialize(void)
 #ifdef CONFIG_CXD56_FARAPI_VERSION_CHECK
   if (GET_SYSFW_VERSION_BUILD() < FARAPISTUB_VERSION)
     {
-      _alert("Mismatched version: loader(%d) != Self(%d)\n",
+      _alert("Mismatched version: loader(%" PRId32 ") != Self(%d)\n",
              GET_SYSFW_VERSION_BUILD(), FARAPISTUB_VERSION);
       _alert("Please update loader and gnssfw firmwares!!\n");
 #  ifdef CONFIG_CXD56_FARAPI_VERSION_FAILED_PANIC