From patchwork Mon Jan 26 11:53:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 5708771 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8A39BC058D for ; Mon, 26 Jan 2015 11:54:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BFEC22013D for ; Mon, 26 Jan 2015 11:54:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E956020131 for ; Mon, 26 Jan 2015 11:54:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753555AbbAZLx6 (ORCPT ); Mon, 26 Jan 2015 06:53:58 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:36531 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753444AbbAZLx4 (ORCPT ); Mon, 26 Jan 2015 06:53:56 -0500 Received: by mail-pd0-f172.google.com with SMTP id v10so11571561pde.3; Mon, 26 Jan 2015 03:53:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=5IazkdTlkfet4yo4ZwH8aTbsoOUgS22vXRHbnL+Fvns=; b=UPFKbd+619Be3AjezkNwKX1LTjfsBhuF4wW8MUOiXTp5mC95caZ5e6RGeQHVNL3Zn1 Jnlo2v7LQ5FYnmwxVuOauTzrh8oIYtbWWKXxgDZR8eNEgpFJh4vQQSmZrFL5eicAwcCf Ef5b0NTxM+R8+awYspf6v2T8D4WdSfdAo9tbKw8mdUFQNLgFxq1P4yqFwWcFg0Uu+ReG 7+vRlAlUlehCrJgNipaAgZlJgVeLU/rV4s7mWsvKKPPmBt26LCwDb/0ukG0fJvnVJykn MlUqsbvrmuzRyL1+wN/xsuXPmXQlVcxblmVQBeIjy4Y2/pCzS63wZJYDRtNH3+R1YfBi 7dSw== X-Received: by 10.70.55.136 with SMTP id s8mr33722358pdp.96.1422273235569; Mon, 26 Jan 2015 03:53:55 -0800 (PST) Received: from localhost.localdomain (KD118152108246.ppp-bb.dion.ne.jp. [118.152.108.246]) by mx.google.com with ESMTPSA id pn2sm9567647pbb.42.2015.01.26.03.53.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Jan 2015 03:53:54 -0800 (PST) From: Yoshihiro Kaneko To: linux-serial@vger.kernel.org Cc: Greg Kroah-Hartman , Simon Horman , Magnus Damm , linux-sh@vger.kernel.org Subject: [PATCH] serial: sh-sci: Use dev_dbg() to log an error message Date: Mon, 26 Jan 2015 20:53:29 +0900 Message-Id: <1422273209-3473-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- This patch is based on the tty-next branch of Greg Kroah-Hartman's tty tree. drivers/tty/serial/sh-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 69f6bf3..9688e74 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -864,7 +864,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++; }