diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-06-26 10:47:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-23 19:24:32 -0400 |
commit | 7b94cae47cbfaa1a64cd51b3735eba3abe6af827 (patch) | |
tree | 60e25f662c44141728d48cc75b3b0265d022cc98 /drivers/usb/serial/console.c | |
parent | d7be62211125c85fa1dd796e92aadce84961a502 (diff) |
USB: console: use dev_dbg
Use dev_dbg for debugging.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/console.c')
-rw-r--r-- | drivers/usb/serial/console.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c index afb50eab2049..bfad2cd39bf3 100644 --- a/drivers/usb/serial/console.c +++ b/drivers/usb/serial/console.c | |||
@@ -210,10 +210,10 @@ static void usb_console_write(struct console *co, | |||
210 | if (count == 0) | 210 | if (count == 0) |
211 | return; | 211 | return; |
212 | 212 | ||
213 | pr_debug("%s - minor %d, %d byte(s)\n", __func__, port->minor, count); | 213 | dev_dbg(&port->dev, "%s - %d byte(s)\n", __func__, count); |
214 | 214 | ||
215 | if (!port->port.console) { | 215 | if (!port->port.console) { |
216 | pr_debug("%s - port not opened\n", __func__); | 216 | dev_dbg(&port->dev, "%s - port not opened\n", __func__); |
217 | return; | 217 | return; |
218 | } | 218 | } |
219 | 219 | ||
@@ -234,7 +234,7 @@ static void usb_console_write(struct console *co, | |||
234 | retval = serial->type->write(NULL, port, buf, i); | 234 | retval = serial->type->write(NULL, port, buf, i); |
235 | else | 235 | else |
236 | retval = usb_serial_generic_write(NULL, port, buf, i); | 236 | retval = usb_serial_generic_write(NULL, port, buf, i); |
237 | pr_debug("%s - return value : %d\n", __func__, retval); | 237 | dev_dbg(&port->dev, "%s - write: %d\n", __func__, retval); |
238 | if (lf) { | 238 | if (lf) { |
239 | /* append CR after LF */ | 239 | /* append CR after LF */ |
240 | unsigned char cr = 13; | 240 | unsigned char cr = 13; |
@@ -244,7 +244,8 @@ static void usb_console_write(struct console *co, | |||
244 | else | 244 | else |
245 | retval = usb_serial_generic_write(NULL, | 245 | retval = usb_serial_generic_write(NULL, |
246 | port, &cr, 1); | 246 | port, &cr, 1); |
247 | pr_debug("%s - return value : %d\n", __func__, retval); | 247 | dev_dbg(&port->dev, "%s - write cr: %d\n", |
248 | __func__, retval); | ||
248 | } | 249 | } |
249 | buf += i; | 250 | buf += i; |
250 | count -= i; | 251 | count -= i; |