Commit 27f0b41d authored by Ranjan Kumar's avatar Ranjan Kumar Committed by Martin K. Petersen
Browse files

scsi: mpt3sas: Suppress unnecessary IOCLogInfo on CONFIG_INVALID_PAGE



Avoid unconditional IOCLogInfo prints for CONFIG_INVALID_PAGE.  Log only
if MPT_DEBUG_REPLY is enabled or when loginfo represents other
errors. This reduces uncessary logging without losing useful error
reporting.

Signed-off-by: default avatarRanjan Kumar <ranjan.kumar@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 1703fe4f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1420,7 +1420,13 @@ _base_display_reply_info(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,

	if (ioc_status & MPI2_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE) {
		loginfo = le32_to_cpu(mpi_reply->IOCLogInfo);
		if (ioc->logging_level & MPT_DEBUG_REPLY)
			_base_sas_log_info(ioc, loginfo);
		else {
			if (!((ioc_status & MPI2_IOCSTATUS_MASK) &
			MPI2_IOCSTATUS_CONFIG_INVALID_PAGE))
				_base_sas_log_info(ioc, loginfo);
		}
	}

	if (ioc_status || loginfo) {