From owner-freebsd-current@FreeBSD.ORG Mon Dec 6 14:15:08 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BC8E106566B for ; Mon, 6 Dec 2010 14:15:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id C80298FC19 for ; Mon, 6 Dec 2010 14:15:07 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id C48AC41C729; Mon, 6 Dec 2010 15:15:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id Ux8AZIwyOPRG; Mon, 6 Dec 2010 15:15:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id CF6C541C712; Mon, 6 Dec 2010 15:15:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 0B5474448F3; Mon, 6 Dec 2010 14:10:49 +0000 (UTC) Date: Mon, 6 Dec 2010 14:10:49 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Kostik Belousov In-Reply-To: <20101206140409.GC2417@deviant.kiev.zoral.com.ua> Message-ID: <20101206140932.S6126@maildrop.int.zabbadoz.net> References: <4CFC4AB3.4090604@jrv.org> <20101206140409.GC2417@deviant.kiev.zoral.com.ua> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Current , "James R. Van Artsdalen" Subject: Re: ts_to_ct messages; ntp: time correction of -1200 seconds exceeds sanity limit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2010 14:15:08 -0000 On Mon, 6 Dec 2010, Kostik Belousov wrote: > On Sun, Dec 05, 2010 at 08:30:11PM -0600, James R. Van Artsdalen wrote: >> FreeBSD gohorns.x 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r216088: Thu Dec 2 >> 23:20:14 CST 2010 root@gohorns.x:/usr/obj/usr/src/sys/GENERIC amd64 >> >> I have been getting a lot of ts_to_ct for months: are we supposed to >> look for something or report anything about these? > They should be silenced. I have this local change for too long, will > commit it shortly unless somebody objects: > > diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c > index 4e7bcd0..c04b5ac 100644 > --- a/sys/kern/subr_clock.c > +++ b/sys/kern/subr_clock.c > @@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$"); > #include > #include > > -#define ct_debug bootverbose > +static int ct_debug; > static int adjkerntz; /* local offset from UTC in seconds */ > static int wall_cmos_clock; /* wall CMOS clock assumed if != 0 */ I have actually been using this one for two months now, which allows you to enable it if you want the debugging. --- sys/kern/subr_clock.c.orig 2010-11-14 16:10:15.000000000 +0000 +++ sys/kern/subr_clock.c 2010-12-04 23:39:51.000000000 +0000 @@ -49,7 +49,7 @@ __FBSDID("$FreeBSD: src/sys/kern/subr_cl #include #include -#define ct_debug bootverbose +static int ct_debug; static int adjkerntz; /* local offset from UTC in seconds */ static int wall_cmos_clock; /* wall CMOS clock assumed if != 0 */ @@ -60,6 +60,8 @@ int tz_dsttime; * This have traditionally been in machdep, but should probably be moved to * kern. */ +SYSCTL_INT(_machdep, OID_AUTO, ct_debug, + CTLFLAG_RW, &ct_debug, 0, "Print ct debug if enabled."); SYSCTL_INT(_machdep, OID_AUTO, wall_cmos_clock, CTLFLAG_RW, &wall_cmos_clock, 0, "CMOS clock keeps wall time"); -- Bjoern A. Zeeb Welcome a new stage of life. Going to jail sucks -- All my daemons like it! http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html