Skip to content

Commit

Permalink
serial: sh-sci: Use dev_dbg() to log an error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoshihiro Kaneko authored and Greg Kroah-Hartman committed Feb 2, 2015
1 parent 9119fba commit 51b31f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}

Expand Down

0 comments on commit 51b31f1

Please sign in to comment.