]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ChangeLog, ntp_loopfilter.c:
authorHal Murray <murray@ntp.org>
Mon, 9 Mar 2015 10:36:19 +0000 (06:36 -0400)
committerHal Murray <murray@ntp.org>
Mon, 9 Mar 2015 10:36:19 +0000 (06:36 -0400)
  Fix for bug 2774

bk: 54fd77a3jngfeL50dXJdy_KTA6RZ5Q

ChangeLog
ntpd/ntp_loopfilter.c

index 9030d8012a4a76e14f555ae36e48b7a641048359..14392ea95fb0471e20b63490315793e90430db06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+
+* [Bug 2774] Unreasonably verbose printout - leap pending/warning
+
 ---
 
 * [Bug 2728] See if C99-style structure initialization works.
index 82ff1632e518d6c19c9bb4295e1efd491221edd0..bc43cebfcedef4c0754fcd295d56d307b273e9ef 100644 (file)
@@ -152,6 +152,7 @@ int kern_enable = TRUE;     /* kernel support enabled */
 int    hardpps_enable;         /* kernel PPS discipline enabled */
 int    ext_enable;             /* external clock enabled */
 int    pps_stratum;            /* pps stratum */
+int    kernel_status;          /* from ntp_adjtime */
 int    allow_panic = FALSE;    /* allow panic correction */
 int    mode_ntpdate = FALSE;   /* exit on first clock set */
 int    freq_cnt;               /* initial frequency clamp */
@@ -706,7 +707,9 @@ local_clock(
                 * the pps. In any case, fetch the kernel offset,
                 * frequency and jitter.
                 */
-               if ((ntp_adj_ret = ntp_adjtime(&ntv)) != 0) {
+               ntp_adj_ret = ntp_adjtime(&ntv);
+               if ((0 > ntp_adj_ret) || (ntp_adj_ret != kernel_status)) {
+                   kernel_status = ntp_adj_ret;
                    ntp_adjtime_error_handler(__func__, &ntv, ntp_adj_ret, errno, hardpps_enable, 0, __LINE__ - 1);
                }
                pll_status = ntv.status;