summaryrefslogtreecommitdiff
path: root/src/ntp.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@linux.intel.com>2012-02-03 20:26:00 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-04 01:15:36 +0100
commit8f3c51386929c432af4d78c1e8ab1d82a1f6ac8b (patch)
tree5c4f10d0a52f75cb8ddf2da311b29a6460accabd /src/ntp.c
parent1db29a8c79e10f801d8d9ce0c861bf8b0a972f4d (diff)
downloadconnman-8f3c51386929c432af4d78c1e8ab1d82a1f6ac8b.tar.gz
connman-8f3c51386929c432af4d78c1e8ab1d82a1f6ac8b.tar.bz2
connman-8f3c51386929c432af4d78c1e8ab1d82a1f6ac8b.zip
Add __connman_timerserver_sync() to resolve a list of timeservers
__connman_timerserver_sync() resolves system timeservers one at a time and queries the resolved server or the 1st of the resolved servers for time correction. If the resolution fails it resolves the next one. __connman_timerserver_sync_next() resolves the next system timeserver. __connman_timerserver_stop() stops this query.If the user modifies the system timeserver list, we restart the ntp process.
Diffstat (limited to 'src/ntp.c')
-rw-r--r--src/ntp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntp.c b/src/ntp.c
index f70dfc73..4d3cd888 100644
--- a/src/ntp.c
+++ b/src/ntp.c
@@ -329,7 +329,7 @@ send:
int __connman_ntp_start(char *server)
{
- DBG("");
+ DBG("%s", server);
if (server == NULL)
return -EINVAL;