svn commit: r314784 - head/sys/kern

Gleb Smirnoff glebius at FreeBSD.org
Mon Mar 6 19:14:09 UTC 2017


Author: glebius
Date: Mon Mar  6 19:14:08 2017
New Revision: 314784
URL: https://svnweb.freebsd.org/changeset/base/314784

Log:
  In panic() print current timestamp, which matches timestamp in the dump
  header.  This will help to correlate console server logs with dump files,
  no matter how precise is clock on a console server appliance, and how
  buggy the appliance is.

Modified:
  head/sys/kern/kern_shutdown.c

Modified: head/sys/kern/kern_shutdown.c
==============================================================================
--- head/sys/kern/kern_shutdown.c	Mon Mar  6 18:20:37 2017	(r314783)
+++ head/sys/kern/kern_shutdown.c	Mon Mar  6 19:14:08 2017	(r314784)
@@ -764,7 +764,7 @@ vpanic(const char *fmt, va_list ap)
 #ifdef SMP
 	printf("cpuid = %d\n", PCPU_GET(cpuid));
 #endif
-
+	printf("time = %ld\n", time_second);
 #ifdef KDB
 	if (newpanic && trace_on_panic)
 		kdb_backtrace();


More information about the svn-src-head mailing list