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 02:44:37 UTC
[incubator-nuttx-apps] 04/07: netutils/ftpc/ftpc_putfile.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 13424fc404155d135edce3f222588a73ff2d614c
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 07:33:26 2020 +0900
netutils/ftpc/ftpc_putfile.c: Fix syslog formats
---
netutils/ftpc/ftpc_putfile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/netutils/ftpc/ftpc_putfile.c b/netutils/ftpc/ftpc_putfile.c
index 17bde8a..dbb1f8f 100644
--- a/netutils/ftpc/ftpc_putfile.c
+++ b/netutils/ftpc/ftpc_putfile.c
@@ -402,7 +402,7 @@ int ftp_putfile(SESSION handle, const char *lname, const char *rname,
abslpath = ftpc_abslpath(session, lname);
if (!abslpath)
{
- nwarn("WARNING: ftpc_abslpath(%s) failed: %d\n", errno);
+ nwarn("WARNING: ftpc_abslpath(%s) failed: %d\n", lname, errno);
goto errout;
}
@@ -411,7 +411,7 @@ int ftp_putfile(SESSION handle, const char *lname, const char *rname,
ret = stat(abslpath, &statbuf);
if (ret != OK)
{
- nwarn("WARNING: stat(%s) failed: %d\n", errno);
+ nwarn("WARNING: stat(%s) failed: %d\n", abslpath, errno);
goto errout_with_abspath;
}