[PATCH] init: print warning message if /dev/console failed to open

From: Alexander Kuleshov
Date: Wed Feb 03 2016 - 14:02:47 EST


Signed-off-by: Alexander Kuleshov <kuleshovmail@xxxxxxxxx>
---
init/do_mounts.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/init/do_mounts.c b/init/do_mounts.c
index dea5de9..ca5da05 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -505,7 +505,9 @@ void __init change_floppy(char *fmt, ...)
termios.c_lflag |= ICANON;
sys_ioctl(fd, TCSETSF, (long)&termios);
sys_close(fd);
- }
+ } else
+ pr_err("Warning: unable to open /dev/console.\n");
+
}
#endif

--
2.7.0.25.gfc10eb5