Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2006 15:07:31 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG, rsmith@xs4all.nl
Subject:   Re: ntpd flipping between PLL and FLL mode
Message-ID:  <200612191407.kBJE7Vmq059475@lurza.secnetix.de>
In-Reply-To: <20061219132032.GA66632@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Roland Smith wrote:
 > Jeremy Chadwick wrote:
 > <snip>
 > > Dec 19 00:22:26 icarus ntpd[624]: kernel time sync enabled 2001
 > > Dec 19 01:47:48 icarus ntpd[624]: kernel time sync enabled 6001
 > > Dec 19 02:04:52 icarus ntpd[624]: kernel time sync enabled 2001
 > 
 > Looks very familiar, unfortunately.

I also get them once in a while, but I really don't care
much.  I usually don't look at the logs anyway, but let
logsurfer (from ports) look at them and tell me when some-
thing looks suspicious.  :-)

 > The following patch to ntp_loopfilter.c should quell the message:
 > -------------------- STFU patch --------------------
 > --- ntp_loopfilter.c.orig       Tue Dec 19 14:13:25 2006
 > +++ ntp_loopfilter.c    Tue Dec 19 14:14:02 2006
 > @@ -593,12 +593,6 @@
 >                                     "kernel time sync disabled %04x",
 >                                     ntv.status);
 >                         ntv.status &= ~(STA_PPSFREQ | STA_PPSTIME);
 > -               } else {
 > -                       if (ntv.status != pll_status)
 > -                               NLOG(NLOG_SYNCEVENT | NLOG_SYSEVENT)
 > -                                   msyslog(LOG_NOTICE,
 > -                                   "kernel time sync enabled %04x",
 > -                                   ntv.status);
 >                 }
 >                 pll_status = ntv.status;
 >                 if (pll_nano)
 > -------------------- STFU patch --------------------

I think it makes sense to replace LOG_NOTICE with LOG_DEBUG,
so you can still get at the messages if you really want to.
It's not necessary to remove the logging code alltogether.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"I invented Ctrl-Alt-Delete, but Bill Gates made it famous."
        -- David Bradley, original IBM PC design team



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612191407.kBJE7Vmq059475>