]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2258] Add syslog message about leap insertion
authorHarlan Stenn <stenn@ntp.org>
Sat, 15 Sep 2012 04:35:46 +0000 (00:35 -0400)
committerHarlan Stenn <stenn@ntp.org>
Sat, 15 Sep 2012 04:35:46 +0000 (00:35 -0400)
bk: 505405a2w15nLnFhoHfwNrErTVArJQ

ChangeLog
ntpd/ntp_timer.c

index b2de28dd2ab835bad274b92048d82452fa1d83c9..0b6171636ee6288503ced65cb4100483556b63dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 * [Bug 752] Use proper ToS network packet markings for IPv4 and IPv6.
 * [Bug 1232] Convert SHM refclock to use struct timespec.
+* [Bug 2258] Add syslog message about leap insertion.
 * [Bug 2263] broadcast server doesn't work for host with
   OS_MISSES_SPECIFIC_ROUTE_UPDATES.
 * [Bug 2271] Decode refclock types when built with --disable-all-clocks.
index 974f5ddd93db1c5c1530e8c1412e6bbcd37350a1..29c5e2a850fa372cc0360905861a184106e75b8d 100644 (file)
@@ -363,14 +363,15 @@ timer(void)
                if (leapsec == 0) {
                        sys_leap = LEAP_NOWARNING;
                        sys_tai = leap_tai;
-#ifdef KERNEL_PLL
+#ifndef SYS_WINNT /* WinNT port has its own leap second handling */
+# ifdef KERNEL_PLL
                        if (!(pll_control && kern_enable))
+# endif /* KERNEL_PLL */
+                       {
                                step_systime(-1.0);
-#else /* KERNEL_PLL */
-#ifndef SYS_WINNT /* WinNT port has its own leap second handling */
-                       step_systime(-1.0);
+                               msyslog(LOG_NOTICE, "Inserting positive leap second.");
+                       }
 #endif /* SYS_WINNT */
-#endif /* KERNEL_PLL */
                        report_event(EVNT_LEAP, NULL, NULL);
                } else {
                        if (leapsec < DAY)