summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-07-10 21:43:23 +0000
committermarcel <marcel@FreeBSD.org>2004-07-10 21:43:23 +0000
commit54e2d39fa084cad1ce98614653948c6a8251887d (patch)
treecd28bfaa534687c3ae4805470a2b7346bf39b4d9 /sys/kern/subr_prf.c
parentccf2260d9ba605628d9c925180e41b3856e03972 (diff)
downloadFreeBSD-src-54e2d39fa084cad1ce98614653948c6a8251887d.zip
FreeBSD-src-54e2d39fa084cad1ce98614653948c6a8251887d.tar.gz
Update for the KDB framework:
o Check kdb_active instead of db_active and do so unconditionally.
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 3650ca1..393906f 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>
+#include <sys/kdb.h>
#include <sys/mutex.h>
#include <sys/sx.h>
#include <sys/kernel.h>
@@ -333,10 +334,8 @@ putchar(int c, void *arg)
/* Don't use the tty code after a panic or while in ddb. */
if (panicstr)
consdirect = 1;
-#ifdef DDB
- if (db_active)
+ if (kdb_active)
consdirect = 1;
-#endif
if (consdirect) {
if (c != '\0')
cnputc(c);
OpenPOWER on IntegriCloud