mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 23:03:55 +00:00
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.
This commit is contained in:
parent
76f3dbcac7
commit
35b927a8c4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163932
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue