diff options
-rw-r--r-- | sys/kern/tty_cons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index b8e8a3c..5ebbe8b 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -539,7 +539,7 @@ cncheckc(void) STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) { cn = cnd->cnd_cn; #ifdef DDB - if (!db_active || (cn->cn_flags & CN_FLAG_NODEBUG)) { + if (!db_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) { #endif c = cn->cn_checkc(cn); if (c != -1) { @@ -564,7 +564,7 @@ cnputc(int c) STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) { cn = cnd->cnd_cn; #ifdef DDB - if (!db_active || (cn->cn_flags & CN_FLAG_NODEBUG)) { + if (!db_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) { #endif if (c == '\n') cn->cn_putc(cn, '\r'); |