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/27 08:43:39 UTC

[incubator-nuttx-apps] 01/05: netutils/ftpd/ftpd.c: Fix syslog formats

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

commit 3e015320e305075ff5a13d6d1ef1b33e7bbcee98
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 27 14:08:45 2020 +0900

    netutils/ftpd/ftpd.c: Fix syslog formats
---
 netutils/ftpd/ftpd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/netutils/ftpd/ftpd.c b/netutils/ftpd/ftpd.c
index 87140d3..24c6727 100644
--- a/netutils/ftpd/ftpd.c
+++ b/netutils/ftpd/ftpd.c
@@ -1842,7 +1842,7 @@ static int ftpd_stream(FAR struct ftpd_session_s *session, int cmdtype)
           seekpos = ftpd_offsatoi(path, session->restartpos);
           if (seekpos < 0)
             {
-              nerr("ERROR: ftpd_offsatoi failed: %d\n", seekpos);
+              nerr("ERROR: ftpd_offsatoi failed: %jd\n", (intmax_t)seekpos);
               errval = -seekpos;
             }
         }
@@ -1851,7 +1851,7 @@ static int ftpd_stream(FAR struct ftpd_session_s *session, int cmdtype)
           seekpos = session->restartpos;
           if (seekpos < 0)
             {
-              nerr("ERROR: Bad restartpos: %d\n", seekpos);
+              nerr("ERROR: Bad restartpos: %jd\n", (intmax_t)seekpos);
               errval = EINVAL;
             }
         }
@@ -2384,7 +2384,7 @@ static int fptd_listscan(FAR struct ftpd_session_s *session, FAR char *path,
   if (!dir)
     {
       int errval = errno;
-      nerr("ERROR: dir() failed\n", errval);
+      nerr("ERROR: dir() failed: %d\n", errval);
       return -errval;
     }