Commit 7b94cae4 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: console: use dev_dbg

Use dev_dbg for debugging.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7be6221
...@@ -210,10 +210,10 @@ static void usb_console_write(struct console *co, ...@@ -210,10 +210,10 @@ static void usb_console_write(struct console *co,
if (count == 0) if (count == 0)
return; return;
pr_debug("%s - minor %d, %d byte(s)\n", __func__, port->minor, count); dev_dbg(&port->dev, "%s - %d byte(s)\n", __func__, count);
if (!port->port.console) { if (!port->port.console) {
pr_debug("%s - port not opened\n", __func__); dev_dbg(&port->dev, "%s - port not opened\n", __func__);
return; return;
} }
...@@ -234,7 +234,7 @@ static void usb_console_write(struct console *co, ...@@ -234,7 +234,7 @@ static void usb_console_write(struct console *co,
retval = serial->type->write(NULL, port, buf, i); retval = serial->type->write(NULL, port, buf, i);
else else
retval = usb_serial_generic_write(NULL, port, buf, i); retval = usb_serial_generic_write(NULL, port, buf, i);
pr_debug("%s - return value : %d\n", __func__, retval); dev_dbg(&port->dev, "%s - write: %d\n", __func__, retval);
if (lf) { if (lf) {
/* append CR after LF */ /* append CR after LF */
unsigned char cr = 13; unsigned char cr = 13;
...@@ -244,7 +244,8 @@ static void usb_console_write(struct console *co, ...@@ -244,7 +244,8 @@ static void usb_console_write(struct console *co,
else else
retval = usb_serial_generic_write(NULL, retval = usb_serial_generic_write(NULL,
port, &cr, 1); port, &cr, 1);
pr_debug("%s - return value : %d\n", __func__, retval); dev_dbg(&port->dev, "%s - write cr: %d\n",
__func__, retval);
} }
buf += i; buf += i;
count -= i; count -= i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment