From owner-freebsd-stable@FreeBSD.ORG Tue Dec 19 13:34:51 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9BEE916A403 for ; Tue, 19 Dec 2006 13:34:51 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id D38FD43CA0 for ; Tue, 19 Dec 2006 13:34:50 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id kBJDKWms072709 for ; Tue, 19 Dec 2006 14:20:33 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 455A2B826; Tue, 19 Dec 2006 14:20:32 +0100 (CET) Date: Tue, 19 Dec 2006 14:20:32 +0100 From: Roland Smith To: freebsd-stable@freebsd.org Message-ID: <20061219132032.GA66632@slackbox.xs4all.nl> Mail-Followup-To: freebsd-stable@freebsd.org References: <20061219124151.GA33385@icarus.home.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <20061219124151.GA33385@icarus.home.lan> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: ntpd flipping between PLL and FLL mode X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 13:34:51 -0000 --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 19, 2006 at 04:41:51AM -0800, Jeremy Chadwick wrote: > 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 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.=20 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 &=3D ~(STA_PPSFREQ | STA_PPSTIME); - } else { - if (ntv.status !=3D pll_status) - NLOG(NLOG_SYNCEVENT | NLOG_SYSEVENT) - msyslog(LOG_NOTICE, - "kernel time sync enabled %04x", - ntv.status); } pll_status =3D ntv.status; if (pll_nano) -------------------- STFU patch -------------------- Roland --=20 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) --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFh+cgEnfvsMMhpyURAnCtAJwN7joqlXJeSn5woOM7hBNKzT/ShgCfc1lw eOG8Hz9Mh/kvTzGHNowgbGg= =q7e6 -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--