]> err.no Git - linux-2.6/blobdiff - arch/um/drivers/ssl.c
x86: printk kernel version in WARN_ON and other dump_stack users
[linux-2.6] / arch / um / drivers / ssl.c
index fd09ad9e9c0aa704e1d05d621fa9ed0c166d5a83..875d60d0c6a25da5ab3694378dfe22fec4bf1004 100644 (file)
@@ -42,8 +42,6 @@ static struct chan_opts opts = {
        .announce       = ssl_announce,
        .xterm_title    = "Serial Line #%d",
        .raw            = 1,
-       .tramp_stack    = 0,
-       .in_kernel      = 1,
 };
 
 static int ssl_config(char *str, char **error_out);
@@ -99,7 +97,13 @@ static int ssl_remove(int n, char **error_out)
 
 static int ssl_open(struct tty_struct *tty, struct file *filp)
 {
-       return line_open(serial_lines, tty);
+       int err = line_open(serial_lines, tty);
+
+       if (err)
+               printk(KERN_ERR "Failed to open serial line %d, err = %d\n",
+                      tty->index, err);
+
+       return err;
 }
 
 #if 0