diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 1999-01-21 00:55:32 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 1999-01-21 00:55:32 +0000 |
commit | 76b5366091f76c9bc73570149ef5055648fc2c39 (patch) | |
tree | 590d020e0f2a5bea6e09d66d951a674443b21d67 /sys/boot/common/console.c | |
parent | 4b4d01da6f07f7754ff6a6e4f5223e9f0984d1a6 (diff) |
Notes
Diffstat (limited to 'sys/boot/common/console.c')
-rw-r--r-- | sys/boot/common/console.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/boot/common/console.c b/sys/boot/common/console.c index 8c4377f2bcd4..b9534d304030 100644 --- a/sys/boot/common/console.c +++ b/sys/boot/common/console.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: console.c,v 1.3 1998/10/11 10:19:11 peter Exp $ + * $Id: console.c,v 1.2 1998/09/26 01:29:13 msmith Exp $ */ #include <stand.h> @@ -150,12 +150,8 @@ cons_set(struct env_var *ev, int flags, void *value) { int cons, active; - if ((value == NULL) || ((active = cons_find(value)) == -1)) { - if (value != NULL) - printf("no such console '%s'\n", (char *)value); - printf("Available consoles:\n"); - for (cons = 0; consoles[cons] != NULL; cons++) - printf(" %s\n", consoles[cons]->c_name); + if ((active = cons_find(value)) == -1) { + printf("no such console '%s'\n", (char *)value); return(CMD_ERROR); } |