summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/common/console.c')
-rw-r--r--sys/boot/common/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/console.c b/sys/boot/common/console.c
index 196e715..d140a96 100644
--- a/sys/boot/common/console.c
+++ b/sys/boot/common/console.c
@@ -217,7 +217,7 @@ cons_change(const char *string)
if (*curpos == '\0')
continue;
cons = cons_find(curpos);
- if (cons > 0) {
+ if (cons >= 0) {
consoles[cons]->c_flags |= C_ACTIVEIN | C_ACTIVEOUT;
consoles[cons]->c_init(0);
}
OpenPOWER on IntegriCloud