Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303583
b: refs/heads/master
c: 085fb96
h: refs/heads/master
i:
  303581: e6b4954
  303579: 206c54d
  303575: 4c52df2
  303567: 3b16208
  303551: 246d115
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 20, 2012
1 parent 659b89d commit da5dd18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45714104b9e85ffa199c5622e227657e99d92fb5
refs/heads/master: 085fb962623b7278fd2f33a8604c37dd22d06b70
9 changes: 5 additions & 4 deletions trunk/drivers/usb/serial/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ static int usb_console_setup(struct console *co, char *options)
serial = usb_serial_get_by_index(co->index);
if (serial == NULL) {
/* no device is connected yet, sorry :( */
err("No USB device connected to ttyUSB%i", co->index);
printk(KERN_ERR "No USB device connected to ttyUSB%i\n",
co->index);
return -ENODEV;
}

Expand All @@ -137,7 +138,7 @@ static int usb_console_setup(struct console *co, char *options)
tty = kzalloc(sizeof(*tty), GFP_KERNEL);
if (!tty) {
retval = -ENOMEM;
err("no more memory");
dev_err(&port->dev, "no more memory\n");
goto reset_open_count;
}
kref_init(&tty->kref);
Expand All @@ -146,7 +147,7 @@ static int usb_console_setup(struct console *co, char *options)
tty->index = co->index;
if (tty_init_termios(tty)) {
retval = -ENOMEM;
err("no more memory");
dev_err(&port->dev, "no more memory\n");
goto free_tty;
}
}
Expand All @@ -159,7 +160,7 @@ static int usb_console_setup(struct console *co, char *options)
retval = usb_serial_generic_open(NULL, port);

if (retval) {
err("could not open USB console port");
dev_err(&port->dev, "could not open USB console port\n");
goto fail;
}

Expand Down

0 comments on commit da5dd18

Please sign in to comment.