mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ratelimit parity errors for Symbios
@ 2009-06-19 20:08 John Stoffel
  0 siblings, 0 replies; only message in thread
From: John Stoffel @ 2009-06-19 20:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: John Stoffel, linux-scsi, stable

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 <john@stoffel.org>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-19 20:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-19 20:08 [PATCH] ratelimit parity errors for Symbios John Stoffel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®