diff options
author | alfred <alfred@FreeBSD.org> | 2012-12-11 01:23:50 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2012-12-11 01:23:50 +0000 |
commit | f63b721d8ae8f97828573d890c7de47e03cac25c (patch) | |
tree | a1d22c4a09ea1e715bacb178cbaba271f510fa3f /sys/kern/kern_shutdown.c | |
parent | c136207370d0cc68d4f9f23f8781e719f1e71b6e (diff) | |
download | FreeBSD-src-f63b721d8ae8f97828573d890c7de47e03cac25c.zip FreeBSD-src-f63b721d8ae8f97828573d890c7de47e03cac25c.tar.gz |
Switch the hardwired WITNESS panics to kassert_panic.
This is an ongoing effort to provide runtime debug information
useful in the field that does not panic existing installations.
This gives us the flexibility needed when shipping images to a
potentially large audience with WITNESS enabled without worrying
about formerly non-fatal LORs hurting a release.
Sponsored by: iXsystems
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 fdaa166..fcbae28 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -540,7 +540,7 @@ shutdown_reset(void *junk, int howto) /* NOTREACHED */ /* assuming reset worked */ } -#ifdef INVARIANTS +#if defined(WITNESS) || defined(INVARIANTS) static int kassert_warn_only = 0; #ifdef KDB static int kassert_do_kdb = 0; |