summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--early.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/early.c b/early.c
index f9e3277..e86e4dd 100644
--- a/early.c
+++ b/early.c
@@ -49,8 +49,10 @@ static void early_console(const char *dev)
struct stat s;
int dd;
- if (stat(dev, &s))
- mkdev("*console", 0600);
+ if (stat(dev, &s)) {
+ ERROR("Failed to stat %s\n", dev);
+ return;
+ }
dd = open(dev, O_RDWR);
if (dd < 0) {