diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2017-03-06 19:14:08 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2017-03-06 19:14:08 +0000 |
commit | f2498877c95752591a132167dc3f7a80e1a9ee88 (patch) | |
tree | a57b012b140bade5933cf16ec85557b680c9f106 /sys/kern/kern_shutdown.c | |
parent | 881b1219aa235cf591f343274cb1b2ef8bc8568c (diff) | |
download | src-f2498877c95752591a132167dc3f7a80e1a9ee88.tar.gz src-f2498877c95752591a132167dc3f7a80e1a9ee88.zip |
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.
Notes
Notes:
svn path=/head/; revision=314784
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r-- | sys/kern/kern_shutdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 370a5447be4d..6ec019dd4824 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -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(); |