Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2010 22:02:48 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216340 - head/sys/kern
Message-ID:  <201012092202.oB9M2mWQ052134@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Thu Dec  9 22:02:48 2010
New Revision: 216340
URL: http://svn.freebsd.org/changeset/base/216340

Log:
  Don't tie ct_debug to bootverbose.  Provide a sysctl to turn it on or off.
  Switch the default to always off.
  
  Reviewed by:	kib

Modified:
  head/sys/kern/subr_clock.c

Modified: head/sys/kern/subr_clock.c
==============================================================================
--- head/sys/kern/subr_clock.c	Thu Dec  9 22:01:15 2010	(r216339)
+++ head/sys/kern/subr_clock.c	Thu Dec  9 22:02:48 2010	(r216340)
@@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/sysctl.h>
 #include <sys/timetc.h>
 
-#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");
 



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