Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754578AbZFSUKN (ORCPT ); Fri, 19 Jun 2009 16:10:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751616AbZFSUJ7 (ORCPT ); Fri, 19 Jun 2009 16:09:59 -0400 Received: from Mycroft.westnet.com ([216.187.52.7]:36043 "EHLO Mycroft.westnet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbZFSUJ6 (ORCPT ); Fri, 19 Jun 2009 16:09:58 -0400 From: John Stoffel To: linux-kernel@vger.kernel.org Cc: John Stoffel , linux-scsi@vger.kernel.org, stable@kernel.org Subject: [PATCH] ratelimit parity errors for Symbios Date: Fri, 19 Jun 2009 16:08:58 -0400 Message-Id: <1245442138-3928-1-git-send-email-john@stoffel.org> X-Mailer: git-send-email 1.6.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 34 ratelimit parity error for Symbios This makes a huge difference when you have a serial console on bootup to limit these messages to a sane number. Signed-off-by: John Stoffel --- drivers/scsi/sym53c8xx_2/sym_hipd.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index 69ad494..297deb8 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c @@ -2321,8 +2321,9 @@ static void sym_int_par (struct sym_hcb *np, u_short sist) int phase = cmd & 7; struct sym_ccb *cp = sym_ccb_from_dsa(np, dsa); - printf("%s: SCSI parity error detected: SCR1=%d DBC=%x SBCL=%x\n", - sym_name(np), hsts, dbc, sbcl); + if (printk_ratelimit()) + printf("%s: SCSI parity error detected: SCR1=%d DBC=%x SBCL=%x\n", + sym_name(np), hsts, dbc, sbcl); /* * Check that the chip is connected to the SCSI BUS. -- 1.6.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/