mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-04 17:15:50 +00:00
stand: Make non-matching console names OKer
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D39984
This commit is contained in:
parent
f93416d677
commit
82cf061eba
@ -238,7 +238,7 @@ cons_check(const char *string)
|
|||||||
if (*curpos != '\0') {
|
if (*curpos != '\0') {
|
||||||
cons = cons_find(curpos);
|
cons = cons_find(curpos);
|
||||||
if (cons == -1) {
|
if (cons == -1) {
|
||||||
printf("console %s is invalid!\n", curpos);
|
printf("console %s is unavailable\n", curpos);
|
||||||
failed++;
|
failed++;
|
||||||
} else {
|
} else {
|
||||||
found++;
|
found++;
|
||||||
@ -251,7 +251,7 @@ cons_check(const char *string)
|
|||||||
if (found == 0)
|
if (found == 0)
|
||||||
printf("no valid consoles!\n");
|
printf("no valid consoles!\n");
|
||||||
|
|
||||||
if (found == 0 || failed != 0) {
|
if (found == 0 && failed != 0) {
|
||||||
printf("Available consoles:\n");
|
printf("Available consoles:\n");
|
||||||
for (cons = 0; consoles[cons] != NULL; cons++)
|
for (cons = 0; consoles[cons] != NULL; cons++)
|
||||||
printf(" %s\n", consoles[cons]->c_name);
|
printf(" %s\n", consoles[cons]->c_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user