diff options
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r-- | sys/kern/tty_cons.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 305dd29..f65f7ad 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -598,7 +598,10 @@ cncheckc(void) STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) { cn = cnd->cnd_cn; if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) { - c = cn->cn_checkc(cn); + if (cn->cn_checkc != NULL) + c = cn->cn_checkc(cn); + else + c = cn->cn_getc(cn); if (c != -1) { return (c); } |