From 9658161dc07f08a6159217071f170f53705b55bb Mon Sep 17 00:00:00 2001 From: jb Date: Fri, 3 Nov 2006 06:23:53 +0000 Subject: [PATCH] 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. --- sys/kern/tty_cons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index c0f86920e352..4472470e088a 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;