]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 19:36:50 +0000 (11:36 -0800)
commit86d5a7485da0b4b35a5527ddb928e01daea87781
treebf676cb163632aaabb72790f180efe373c74eae9
parentdced6b0618691d36b0ebf0a8bb432a2599c42c9e
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 af0094115 but this commit removed the
CONFIG_SCSI_MPT3SAS_LOGGING Kconfig option which hid the bug.

Fixes: af0094115 '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>
(cherry picked from commit 0d667f72b2a20bbac72bec0ab11467fc70bb0f1f)

Orabug: 25512724

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_scsih.c