Date: Mon, 6 Mar 2017 19:14:08 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314784 - head/sys/kern Message-ID: <201703061914.v26JE8Yr014834@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703061914.v26JE8Yr014834>