USB: pl2303: remove debugging noise
authorJohan Hovold <jhovold@gmail.com>
Wed, 26 Jun 2013 14:47:30 +0000 (16:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:24:33 +0000 (16:24 -0700)
Only log the tty_flags in process_read_urb on errors.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c

index 91f14c6950f97d88020302fe683a310f6c012f2e..299a0ffcb165c9bb78e2c292c40a8f7f034841c1 100644 (file)
@@ -790,8 +790,10 @@ static void pl2303_process_read_urb(struct urb *urb)
                tty_flag = TTY_PARITY;
        else if (line_status & UART_FRAME_ERROR)
                tty_flag = TTY_FRAME;
-       dev_dbg(&port->dev, "%s - tty_flag = %d\n", __func__, tty_flag);
 
+       if (tty_flag != TTY_NORMAL)
+               dev_dbg(&port->dev, "%s - tty_flag = %d\n", __func__,
+                                                               tty_flag);
        /* overrun is special, not associated with a char */
        if (line_status & UART_OVERRUN_ERROR)
                tty_insert_flip_char(&port->port, 0, TTY_OVERRUN);