]> git.baikalelectronics.ru Git - kernel.git/commit
mpt3sas: Don't spam logs if logging level is 0
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 3 Aug 2016 13:00:18 +0000 (15:00 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Aug 2016 01:27:13 +0000 (21:27 -0400)
commitf8f585021532ac866c10f09e840ad693da893128
treedd902103343c1e2a1a2a1630c704d5fd87d48340
parent5d5932ebf6cf38f429b3f7b84ec88fdd6464585f
mpt3sas: Don't spam logs if logging level is 0

In _scsih_io_done() we test if the ioc->logging_level does _not_ have
the MPT_DEBUG_REPLY bit set and if it hasn't we print the debug
messages. This unfortunately is the wrong way around.

Note, the actual bug is older than d86024bf6 but this commit removed the
CONFIG_SCSI_MPT3SAS_LOGGING Kconfig option which hid the bug.

Fixes: d86024bf6 'mpt2sas, mpt3sas: Remove SCSI_MPTXSAS_LOGGING entry from Kconfig'
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Chaitra P B <chaitra.basappa@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_scsih.c