projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e2fb91
)
sym53c8xx: ratelimit parity errors
author
John Stoffel
<
[email protected]
>
Fri, 19 Jun 2009 20:08:58 +0000
(16:08 -0400)
committer
James Bottomley
<
[email protected]
>
Sun, 21 Jun 2009 16:12:17 +0000
(11:12 -0500)
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 <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/sym53c8xx_2/sym_hipd.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/sym53c8xx_2/sym_hipd.c
b/drivers/scsi/sym53c8xx_2/sym_hipd.c
index 69ad4945c9369467f0d2fa5095741845d8156ac8..297deb817a5d2f7076706032f7286398f5edfecc 100644
(file)
--- 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.