diff options
author | jb <jb@FreeBSD.org> | 2006-11-03 06:23:53 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2006-11-03 06:23:53 +0000 |
commit | 9658161dc07f08a6159217071f170f53705b55bb (patch) | |
tree | 0aa2de665ebd9c61421a97230ec547985076bc58 /sys/kern/tty_cons.c | |
parent | 905cb41ba3b8f64d42348ffeb4087bfa51f7c4fe (diff) | |
download | FreeBSD-src-9658161dc07f08a6159217071f170f53705b55bb.zip FreeBSD-src-9658161dc07f08a6159217071f170f53705b55bb.tar.gz |
Always init the console before trying to cnadd it to
avoid the case where the console name isn't set and
cnadd wants to use printf to complain about it.
Diffstat (limited to 'sys/kern/tty_cons.c')
-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 c0f8692..4472470 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -162,15 +162,15 @@ cninit(void) /* * Initialize console, and attach to it. */ - cnadd(cn); cn->cn_init(cn); + cnadd(cn); } } if (best_cn == NULL) return; if ((boothowto & RB_MULTIPLE) == 0) { - cnadd(best_cn); best_cn->cn_init(best_cn); + cnadd(best_cn); } if (boothowto & RB_PAUSE) console_pausing = 1; |