소스 검색

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>
John Stoffel 16 년 전
부모
커밋
75be63bcf7
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      drivers/scsi/sym53c8xx_2/sym_hipd.c

+ 3 - 2
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;
 	int phase	= cmd & 7;
 	struct sym_ccb *cp	= sym_ccb_from_dsa(np, dsa);
 	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.
 	 *  Check that the chip is connected to the SCSI BUS.