mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-09 06:25:16 +00:00
netutils/ftpd/ftpd.c: Fix syslog formats
This commit is contained in:
parent
d1821c9bf0
commit
3e015320e3
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue