]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit7cb8e72a3df70809a75b308fe96767486bfc1000
treedf80096b1e7a1bb58ffe27e95c059c2ea3701d0a
parent26fe01490503a6f328a92864c493ff40058ed767
[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