From: Dave Hart Date: Fri, 17 Sep 2010 04:20:03 +0000 (+0000) Subject: [Bug 1344] ntpd on Windows exits without logging cause. X-Git-Tag: NTP_4_2_6P3_RC1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50795f2a746469b558f9f45a6b990b0b8d18ac13;p=thirdparty%2Fntp.git [Bug 1344] ntpd on Windows exits without logging cause. bk: 4c92ec73Uf01NReS3daZFiN3IdCaog --- diff --git a/ChangeLog b/ChangeLog index 590f376b2..7c2e61f46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +--- + +* [Bug 1344] ntpd on Windows exits without logging cause. + --- (4.2.6p3-beta1) 2010/09/11 Released by Harlan Stenn diff --git a/ports/winnt/ntpd/nt_clockstuff.c b/ports/winnt/ntpd/nt_clockstuff.c index d4a067648..44448a118 100644 --- a/ports/winnt/ntpd/nt_clockstuff.c +++ b/ports/winnt/ntpd/nt_clockstuff.c @@ -1228,9 +1228,11 @@ ntp_timestamp_from_counter( Now.ll -= InterpTimestamp; if (Now.ll > 60 * HECTONANOSECONDS || Now.ll < -60 * (LONGLONG) HECTONANOSECONDS) { - DPRINTF(1, ("ntp_timestamp_from_counter serial driver system " - "time %.6fs from current\n", + DPRINTF(1, ("ntp_timestamp_from_counter serial driver system time %.6fs from current\n", Now.ll / (double)LL_HNS)); + msyslog(LOG_ERR, + "ntp_timestamp_from_counter serial driver system time %.6fs from current\n", + Now.ll / (double)LL_HNS); exit(-1); } #endif