USB: serial: use dev_err_console in custom write paths

Use dev_err_console in write paths for devices which can be used as a
console but do not use the generic write implementation.

Compile-only tested.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Johan Hovold
2012-02-10 13:20:51 +01:00
committed by Greg Kroah-Hartman
parent f1475a00a1
commit 22a416c4e0
10 changed files with 18 additions and 19 deletions

View File

@@ -740,7 +740,7 @@ static int whiteheat_write(struct tty_struct *tty,
urb->transfer_buffer_length = bytes;
result = usb_submit_urb(urb, GFP_ATOMIC);
if (result) {
dev_err(&port->dev,
dev_err_console(port,
"%s - failed submitting write urb, error %d\n",
__func__, result);
sent = result;