From: Harlan Stenn Date: Wed, 27 Dec 2006 06:57:20 +0000 (-0500) Subject: [Bug 452] Do not report kernel PLL/FLL flips. X-Git-Tag: NTP_4_2_4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03022c3da0564fb4e5a66a6d37eb7c1b7ff7c640;p=thirdparty%2Fntp.git [Bug 452] Do not report kernel PLL/FLL flips. bk: 459219504-l6HfA1aCEArCc-JRnTHA --- diff --git a/NEWS b/NEWS index d319ca0ce..21c12e1f2 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +* [Bug 452] Do not report kernel PLL/FLL flips. * [Bug 746] Expert mouseCLOCK USB v2.0 support added.' * driver8.html updates. * [Bug 747] Drop tags from ntpdc.html. diff --git a/ntpd/ntp_loopfilter.c b/ntpd/ntp_loopfilter.c index b12fccee1..a103d3aec 100644 --- a/ntpd/ntp_loopfilter.c +++ b/ntpd/ntp_loopfilter.c @@ -650,17 +650,15 @@ local_clock( * frequency and pretend we did it here. */ if (ntp_adjtime(&ntv) == TIME_ERROR) { - if (ntv.status != pll_status) - NLOG(NLOG_SYNCEVENT | NLOG_SYSEVENT) - msyslog(LOG_NOTICE, - "kernel time sync disabled %04x", - ntv.status); + NLOG(NLOG_SYNCEVENT | NLOG_SYSEVENT) + msyslog(LOG_NOTICE, + "kernel time sync error %04x", ntv.status); ntv.status &= ~(STA_PPSFREQ | STA_PPSTIME); } else { - if (ntv.status != pll_status) + if ((ntv.status ^ pll_status) & ~STA_FLL) NLOG(NLOG_SYNCEVENT | NLOG_SYSEVENT) msyslog(LOG_NOTICE, - "kernel time sync enabled %04x", + "kernel time sync status change %04x", ntv.status); } pll_status = ntv.status;