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/11/25 13:12:05 UTC

[incubator-nuttx] 28/35: fs/nfs/rpc_clnt.c: Fix a syslog format

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 bed9c3b83d602823bed411705d8bf5eefffb767b
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 19:50:46 2020 +0900

    fs/nfs/rpc_clnt.c: Fix a syslog format
---
 fs/nfs/rpc_clnt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/nfs/rpc_clnt.c b/fs/nfs/rpc_clnt.c
index 5d7b180..667f276 100644
--- a/fs/nfs/rpc_clnt.c
+++ b/fs/nfs/rpc_clnt.c
@@ -84,6 +84,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <errno.h>
+#include <inttypes.h>
 #include <string.h>
 #include <debug.h>
 
@@ -816,7 +817,7 @@ int rpcclnt_request(FAR struct rpcclnt *rpc, int procnum, int prog,
     }
   else
     {
-      ferr("ERROR: Unsupported RPC type: %d\n", tmp);
+      ferr("ERROR: Unsupported RPC type: %" PRId32 "\n", tmp);
       return -EOPNOTSUPP;
     }