Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1325869

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

From Alexander Kuleshov <kuleshovmail@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] init: print warning message if /dev/console failed to open
Date 2016-02-03 20:10 +0100
Message-ID <qYaYq-60k-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 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

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] init: print warning message if /dev/console failed to open Alexander Kuleshov <kuleshovmail@gmail.com> - 2016-02-03 20:10 +0100
  Re: [PATCH] init: print warning message if /dev/console failed to open Pranith Kumar <bobby.prani@gmail.com> - 2016-02-03 20:20 +0100
  Re: [PATCH] init: print warning message if /dev/console failed to  open Peter Hurley <peter@hurleysoftware.com> - 2016-02-03 20:30 +0100

csiph-web