diff options
author | John Stoffel <john@stoffel.org> | 2009-06-19 16:08:58 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-21 12:12:17 -0400 |
commit | 75be63bcf73ebdd1fdc1d49f6bf2d1326a1ba7de (patch) | |
tree | b895001cf9944b73ebac832609c749280809abd8 /drivers/scsi | |
parent | 5e2fb917920c62c5ad260962471aeb578b52ac40 (diff) |
sym53c8xx: ratelimit parity errors
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>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | 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 69ad4945c936..297deb817a5d 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) | |||
2321 | int phase = cmd & 7; | 2321 | int phase = cmd & 7; |
2322 | struct sym_ccb *cp = sym_ccb_from_dsa(np, dsa); | 2322 | struct sym_ccb *cp = sym_ccb_from_dsa(np, dsa); |
2323 | 2323 | ||
2324 | printf("%s: SCSI parity error detected: SCR1=%d DBC=%x SBCL=%x\n", | 2324 | if (printk_ratelimit()) |
2325 | sym_name(np), hsts, dbc, sbcl); | 2325 | printf("%s: SCSI parity error detected: SCR1=%d DBC=%x SBCL=%x\n", |
2326 | sym_name(np), hsts, dbc, sbcl); | ||
2326 | 2327 | ||
2327 | /* | 2328 | /* |
2328 | * Check that the chip is connected to the SCSI BUS. | 2329 | * Check that the chip is connected to the SCSI BUS. |