Module Name:    src
Committed By:   kre
Date:           Sat Apr 14 01:53:38 UTC 2018

Modified Files:
        src/sys/kern: subr_prf.c

Log Message:
Change the default precision of timestamps from 9 digits (nanosecs)
to 7 (100's of nanosecs).   This should perhaps depend upon the
port (what resolution is rational) the CPU speed, and the clock
update frequency (no point printing nanoseconds if the value being
brinted is only updated every few microseconds).

Eventually it should be able to be controlled by a sysctl, but
the default still matters, as that's what the autoconf (boot time,
before init starts) messages will use.


To generate a diff of this commit:
cvs rdiff -u -r1.169 -r1.170 src/sys/kern/subr_prf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_prf.c
diff -u src/sys/kern/subr_prf.c:1.169 src/sys/kern/subr_prf.c:1.170
--- src/sys/kern/subr_prf.c:1.169	Sat Apr 14 01:45:37 2018
+++ src/sys/kern/subr_prf.c	Sat Apr 14 01:53:38 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_prf.c,v 1.169 2018/04/14 01:45:37 kre Exp $	*/
+/*	$NetBSD: subr_prf.c,v 1.170 2018/04/14 01:53:38 kre Exp $	*/
 
 /*-
  * Copyright (c) 1986, 1988, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.169 2018/04/14 01:45:37 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.170 2018/04/14 01:53:38 kre Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -484,7 +484,7 @@ putlogpri(int level)
 
 #ifndef KLOG_NOTIMESTAMP
 static int needtstamp = 1;
-int log_ts_prec = 9;
+int log_ts_prec = 7;
 
 static void
 addtstamp(int flags, struct tty *tp)

Reply via email to