Date: Tue, 19 Dec 2006 14:20:32 +0100 From: Roland Smith <rsmith@xs4all.nl> To: freebsd-stable@freebsd.org Subject: Re: ntpd flipping between PLL and FLL mode Message-ID: <20061219132032.GA66632@slackbox.xs4all.nl> In-Reply-To: <20061219124151.GA33385@icarus.home.lan> References: <20061219124151.GA33385@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tue, Dec 19, 2006 at 04:41:51AM -0800, 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.
<snip>
> I looked at the ntpd code for this, and there does not appear to
> be a way to disable logging of this message without impacting other
> important ntpd messages. :-(
Since this is about the only message I ever see from ntpd, I put the
following line in /etc/ntpd.conf:
logconfig -syncall
At least this got rid of those annoying messages. Maybe syncinfo or
syncevents would be sufficient to kill these messages. I haven't checked
if LOG_NOTICE in the source code is equivalent to the message type
"info" in the manpage.
IMHO, it violates the tradition that programs shouldn't blather.
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 --------------------
Roland
--
R.F.Smith http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
iD8DBQFFh+cgEnfvsMMhpyURAnCtAJwN7joqlXJeSn5woOM7hBNKzT/ShgCfc1lw
eOG8Hz9Mh/kvTzGHNowgbGg=
=q7e6
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061219132032.GA66632>
