Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

John Stoffel and committed by
James Bottomley
75be63bc 5e2fb917

+3 -2
+3 -2
drivers/scsi/sym53c8xx_2/sym_hipd.c
··· 2321 2321 int phase = cmd & 7; 2322 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", 2325 - sym_name(np), hsts, dbc, sbcl); 2324 + if (printk_ratelimit()) 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 2329 * Check that the chip is connected to the SCSI BUS.