summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-25 20:40:10 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-25 20:40:10 -0400
commitb68d12625b1a14599a44e192dd2f25869f8851ef (patch)
tree99343ed085addbf7a72c1411b798c7146c105a3c /serial.c
parentff545a93f5d68daa35925e966de7ae57a807ba5b (diff)
downloadgpsd-b68d12625b1a14599a44e192dd2f25869f8851ef.tar.gz
Log NTP link activation after, not before.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/serial.c b/serial.c
index 8272dbed..550ba408 100644
--- a/serial.c
+++ b/serial.c
@@ -434,12 +434,13 @@ void gpsd_assert_sync(struct gps_device_t *session)
* 1pps derived time data to ntpd.
*/
- gpsd_report(LOG_INF, "NTPD ntpd_link_activate: %d\n",
- (int)session->shmindex >= 0);
/* do not start more than one ntp thread */
if (!(session->shmindex >= 0))
ntpd_link_activate(session);
+ gpsd_report(LOG_INF, "NTPD ntpd_link_activate: %d\n",
+ (int)session->shmindex >= 0);
+
#endif /* NTPSHM_ENABLE */
}