Skip to contentSkip to conversation

ratelimit parity errors for Symbios

PATCH New John Stoffel 1 participant 1 message Jun 19, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ratelimit parity errors for Symbios

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.

---
 drivers/scsi/sym53c8xx_2/sym_hipd.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/scsi/sym53c8xx_2/sym_hipd.c +3 -2
index 69ad494..297deb8 100644
@@ -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.
Signature · 1 line
1.6.3.1