summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-02-05 16:47:59 +0000
committerderaadt <deraadt@openbsd.org>1998-02-05 16:47:59 +0000
commitc23dcd950c5708d45be1518b8844a5b2e2c9d49d (patch)
treeb82915b5d6fe7bb6670b27f053cc5903629a356f /sys/kern/subr_prf.c
parentXr (diff)
downloadwireguard-openbsd-c23dcd950c5708d45be1518b8844a5b2e2c9d49d.tar.xz
wireguard-openbsd-c23dcd950c5708d45be1518b8844a5b2e2c9d49d.zip
rename ddb.panic_ddb, and add ddb.console. Now you can stop console ddb entry
with a sysctl. There will be architectures and drivers that lack function, and I trust the maintainers of those will forget to add the code..
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index bd710c7dcb3..a0c547a82a8 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.21 1998/01/24 17:54:07 niklas Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.22 1998/02/05 16:49:29 deraadt Exp $ */
/* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */
/*-
@@ -109,7 +109,8 @@ extern int log_open; /* subr_log: is /dev/klog open? */
const char *panicstr; /* arg to first call to panic (used as a flag
to indicate that panic has already been called). */
#ifdef DDB
-int db_panic_ddb = 1;
+int db_panic = 1;
+int db_console = 1;
#endif
/*
@@ -195,7 +196,7 @@ panic(fmt, va_alist)
kdbpanic();
#endif
#ifdef DDB
- if (db_panic_ddb)
+ if (db_panic)
Debugger();
#endif
boot(bootopt);