serial: sh-sci: Use dev_dbg() to log an error message
authorYoshihiro Kaneko <ykaneko0929@gmail.com>
Mon, 26 Jan 2015 11:53:29 +0000 (20:53 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:26 +0000 (10:11 -0800)
Since the driver cannot return from overrun error if characters
are output during overrun process, use dev_dbg() instead of
dev_notice() to log the error message of overrun in syslog.

Based on a patch by Hisashi Nakamura.

Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c

index 4f784f8bf264008668b4fe495636dc4c7ae9df63..508bdb527e105b2035d7f74157231b8ec78e13c3 100644 (file)
@@ -858,7 +858,7 @@ static int sci_handle_fifo_overrun(struct uart_port *port)
                tty_insert_flip_char(tport, 0, TTY_OVERRUN);
                tty_flip_buffer_push(tport);
 
-               dev_notice(port->dev, "overrun error\n");
+               dev_dbg(port->dev, "overrun error\n");
                copied++;
        }