I'd like reduce noise after a panic.  Here's a diff to shut up splassert()
in that case.  This is similar to what we do with rwlocks.

ok?

Index: kern/subr_prf.c
===================================================================
RCS file: /cvs/src/sys/kern/subr_prf.c,v
retrieving revision 1.91
diff -u -p -r1.91 subr_prf.c
--- kern/subr_prf.c     30 Apr 2017 16:45:46 -0000      1.91
+++ kern/subr_prf.c     28 Sep 2017 10:09:08 -0000
@@ -216,6 +216,8 @@ panic(const char *fmt, ...)
 void
 splassert_fail(int wantipl, int haveipl, const char *func)
 {
+       if (panicstr)
+               return;
 
        printf("splassert: %s: want %d have %d\n", func, wantipl, haveipl);
        switch (splassert_ctl) {

Reply via email to