diff options
Diffstat (limited to 'arch/um/drivers/stdio_console.c')
-rw-r--r-- | arch/um/drivers/stdio_console.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/um/drivers/stdio_console.c b/arch/um/drivers/stdio_console.c index e312488a7a99..656036e90b19 100644 --- a/arch/um/drivers/stdio_console.c +++ b/arch/um/drivers/stdio_console.c | |||
@@ -99,7 +99,12 @@ static int con_remove(int n, char **error_out) | |||
99 | 99 | ||
100 | static int con_open(struct tty_struct *tty, struct file *filp) | 100 | static int con_open(struct tty_struct *tty, struct file *filp) |
101 | { | 101 | { |
102 | return line_open(vts, tty); | 102 | int err = line_open(vts, tty); |
103 | if (err) | ||
104 | printk(KERN_ERR "Failed to open console %d, err = %d\n", | ||
105 | tty->index, err); | ||
106 | |||
107 | return err; | ||
103 | } | 108 | } |
104 | 109 | ||
105 | /* Set in an initcall, checked in an exitcall */ | 110 | /* Set in an initcall, checked in an exitcall */ |