From: Yoshihiro Kaneko Date: Mon, 26 Jan 2015 11:53:29 +0000 (+0900) Subject: serial: sh-sci: Use dev_dbg() to log an error message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51b31f1c6bbb3e741c930a71af8f0bcd4e5d4ded;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git serial: sh-sci: Use dev_dbg() to log an error message 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 Acked-by: Geert Uytterhoeven Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 4f784f8bf264..508bdb527e10 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -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++; }