diff options
| author | Ian Dowse <iedowse@FreeBSD.org> | 2003-06-22 03:20:24 +0000 |
|---|---|---|
| committer | Ian Dowse <iedowse@FreeBSD.org> | 2003-06-22 03:20:24 +0000 |
| commit | adef9265ef3b78cea9edc73bd91a8f47a0e346eb (patch) | |
| tree | 842f3aa742448a4a6cfeccece48759473fdc47c7 | |
| parent | d29bf12ff8af22103581957d676732a09eec7e19 (diff) | |
Notes
| -rw-r--r-- | sys/kern/subr_prf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index e802e004731e..d851e609aeea 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -336,9 +336,13 @@ putchar(int c, void *arg) int consdirect, flags = ap->flags; consdirect = ((flags & TOCONS) && constty == NULL); - /* Don't use the tty code after a panic. */ + /* Don't use the tty code after a panic or while in ddb. */ if (panicstr) consdirect = 1; +#ifdef DDB + if (db_active) + consdirect = 1; +#endif if (consdirect) { if (c != '\0') cnputc(c); |
