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:38 UTC
[incubator-nuttx-apps] 05/07: netutils/ntpclient/ntpclient.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 eeded9daa1b664ba1d4b93ed85523414ffa1d303
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 07:34:33 2020 +0900
netutils/ntpclient/ntpclient.c: Fix syslog formats
---
netutils/ntpclient/ntpclient.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/netutils/ntpclient/ntpclient.c b/netutils/ntpclient/ntpclient.c
index bc9bfef..5bda91c 100644
--- a/netutils/ntpclient/ntpclient.c
+++ b/netutils/ntpclient/ntpclient.c
@@ -296,7 +296,7 @@ static void ntpc_settime(FAR uint8_t *timestamp)
tp.tv_nsec = nsec;
clock_settime(CLOCK_REALTIME, &tp);
- sinfo("Set time to %lu seconds: %d\n", (unsigned long)tp.tv_sec, ret);
+ sinfo("Set time to %ju seconds\n", (intmax_t)tp.tv_sec);
}
/****************************************************************************
@@ -559,7 +559,7 @@ int ntpc_start(void)
DEBUGASSERT(errval > 0);
g_ntpc_daemon.state = NTP_STOPPED;
- nerr("ERROR: Failed to start the NTP daemon\n", errval);
+ nerr("ERROR: Failed to start the NTP daemon: %d\n", errval);
sem_post(&g_ntpc_daemon.lock);
return -errval;
}