[SCSI] sym53c8xx: don't flood syslog with negotiation messages
authorTony Battersby <tonyb@cybernetics.com>
Thu, 8 Jan 2009 17:59:08 +0000 (12:59 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:58:17 +0000 (12:58 -0500)
commit058bb82c5628c88af802c19e2b56ae43551552d5
treedf80096b1e7a1bb58ffe27e95c059c2ea3701d0a
parentc2fd206e08cd55e7ee0d865affc172eb5af01c16
[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>
drivers/scsi/sym53c8xx_2/sym_hipd.c
drivers/scsi/sym53c8xx_2/sym_hipd.h