diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 19:27:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 19:27:30 -0400 |
commit | fe2baf87a82dd44f74cfc6e24adc8b8bdfb37bb6 (patch) | |
tree | 631010ddda0aad317054977939232590930553da /drivers/usb | |
parent | 9760b28324f65cc1efc11326ded9bac9cbf49554 (diff) |
USB: spcp8x5.c: remove dbg() usage
dbg() is a usb-serial specific macro. This patch converts
the spcp8x5.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Rusty Russell <rusty@rustcorp.com.au>
CC: Alan Stern <stern@rowland.harvard.edu>
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/spcp8x5.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index 1fc1cab5a4ad..cad608984710 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
@@ -425,7 +425,7 @@ static void spcp8x5_set_termios(struct tty_struct *tty, | |||
425 | if (i < 0) | 425 | if (i < 0) |
426 | dev_err(&port->dev, "Set UART format %#x failed (error = %d)\n", | 426 | dev_err(&port->dev, "Set UART format %#x failed (error = %d)\n", |
427 | uartdata, i); | 427 | uartdata, i); |
428 | dbg("0x21:0x40:0:0 %d", i); | 428 | dev_dbg(&port->dev, "0x21:0x40:0:0 %d\n", i); |
429 | 429 | ||
430 | if (cflag & CRTSCTS) { | 430 | if (cflag & CRTSCTS) { |
431 | /* enable hardware flow control */ | 431 | /* enable hardware flow control */ |
@@ -569,15 +569,19 @@ static int spcp8x5_ioctl(struct tty_struct *tty, | |||
569 | unsigned int cmd, unsigned long arg) | 569 | unsigned int cmd, unsigned long arg) |
570 | { | 570 | { |
571 | struct usb_serial_port *port = tty->driver_data; | 571 | struct usb_serial_port *port = tty->driver_data; |
572 | dbg("%s (%d) cmd = 0x%04x", __func__, port->number, cmd); | 572 | |
573 | dev_dbg(&port->dev, "%s (%d) cmd = 0x%04x\n", __func__, | ||
574 | port->number, cmd); | ||
573 | 575 | ||
574 | switch (cmd) { | 576 | switch (cmd) { |
575 | case TIOCMIWAIT: | 577 | case TIOCMIWAIT: |
576 | dbg("%s (%d) TIOCMIWAIT", __func__, port->number); | 578 | dev_dbg(&port->dev, "%s (%d) TIOCMIWAIT\n", __func__, |
579 | port->number); | ||
577 | return spcp8x5_wait_modem_info(port, arg); | 580 | return spcp8x5_wait_modem_info(port, arg); |
578 | 581 | ||
579 | default: | 582 | default: |
580 | dbg("%s not supported = 0x%04x", __func__, cmd); | 583 | dev_dbg(&port->dev, "%s not supported = 0x%04x", __func__, |
584 | cmd); | ||
581 | break; | 585 | break; |
582 | } | 586 | } |
583 | 587 | ||