diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 21:43:23 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 21:43:23 +0000 |
commit | 54e2d39fa084cad1ce98614653948c6a8251887d (patch) | |
tree | cd28bfaa534687c3ae4805470a2b7346bf39b4d9 /sys/kern/subr_prf.c | |
parent | ccf2260d9ba605628d9c925180e41b3856e03972 (diff) | |
download | FreeBSD-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.c | 5 |
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); |