Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Change the default precision of timestamps from 9 d...



details:   https://anonhg.NetBSD.org/src/rev/c15e170277c2
branches:  trunk
changeset: 322023:c15e170277c2
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Apr 14 01:53:38 2018 +0000

description:
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.

diffstat:

 sys/kern/subr_prf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ed9ac72b1ccb -r c15e170277c2 sys/kern/subr_prf.c
--- a/sys/kern/subr_prf.c       Sat Apr 14 01:45:37 2018 +0000
+++ b/sys/kern/subr_prf.c       Sat Apr 14 01:53:38 2018 +0000
@@ -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 @@
 
 #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)



Home | Main Index | Thread Index | Old Index