diff options
author | Tony Battersby <tonyb@cybernetics.com> | 2009-01-08 12:59:08 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-12 13:58:17 -0400 |
commit | 058bb82c5628c88af802c19e2b56ae43551552d5 (patch) | |
tree | df80096b1e7a1bb58ffe27e95c059c2ea3701d0a /drivers/scsi/sym53c8xx_2/sym_hipd.h | |
parent | c2fd206e08cd55e7ee0d865affc172eb5af01c16 (diff) |
[SCSI] sym53c8xx: don't flood syslog with negotiation messages
sym53c8xx prints a negotiation message after every check condition.
This can add up to a lot of messages for removable-medium devices
(CD-ROM, tape drives, etc.) that are being polled, since they return
check condition when no medium is present. This patch suppresses the
negotiation message if it would be the same as the last one printed.
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_hipd.h')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.h b/drivers/scsi/sym53c8xx_2/sym_hipd.h index 233a3d0b2cef..61d28fcfffbf 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.h +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.h | |||
@@ -420,6 +420,9 @@ struct sym_tcb { | |||
420 | /* Transfer goal */ | 420 | /* Transfer goal */ |
421 | struct sym_trans tgoal; | 421 | struct sym_trans tgoal; |
422 | 422 | ||
423 | /* Last printed transfer speed */ | ||
424 | struct sym_trans tprint; | ||
425 | |||
423 | /* | 426 | /* |
424 | * Keep track of the CCB used for the negotiation in order | 427 | * Keep track of the CCB used for the negotiation in order |
425 | * to ensure that only 1 negotiation is queued at a time. | 428 | * to ensure that only 1 negotiation is queued at a time. |