ntp: Add debug message when starting NTP against resolved server
authorGrant Erickson <marathon96@gmail.com>
Mon, 16 Jul 2012 16:48:07 +0000 (09:48 -0700)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 17 Jul 2012 08:13:53 +0000 (10:13 +0200)
This patch adds an analagous debug message when starting NTP against a
resolved server as when starting against a numbered server.

src/timeserver.c

index 59b299d..f934b58 100644 (file)
@@ -96,6 +96,8 @@ static void resolv_result(GResolvResultStatus status, char **results, gpointer u
                                                        ts_list, results[i]);
                        }
 
+                       DBG("Using timeserver %s", results[0]);
+
                        __connman_ntp_start(results[0]);
 
                        return;