Explorar o código

qcacld-3.0: Log reason code while flushing logging events

Log reason code while flushing logging events to precisely know
the reason of failure.

Change-Id: Ibe26563780f165e85490c54c2b4f83d959a3587f
CRs-Fixed: 2235138
Rajeev Kumar %!s(int64=7) %!d(string=hai) anos
pai
achega
dcce809079
Modificáronse 2 ficheiros con 5 adicións e 0 borrados
  1. 4 0
      core/cds/src/cds_api.c
  2. 1 0
      core/wma/src/wma_main.c

+ 4 - 0
core/cds/src/cds_api.c

@@ -2253,6 +2253,10 @@ QDF_STATUS cds_set_log_completion(uint32_t is_fatal,
 	p_cds_context->log_complete.recovery_needed = recovery_needed;
 	p_cds_context->log_complete.is_report_in_progress = true;
 	qdf_spinlock_release(&p_cds_context->bug_report_lock);
+	QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG,
+		  "%s: is_fatal %d ind %d reasn_code %d recovery needed %d",
+		  __func__, is_fatal, indicator, reason_code, recovery_needed);
+
 	return QDF_STATUS_SUCCESS;
 }
 

+ 1 - 0
core/wma/src/wma_main.c

@@ -2457,6 +2457,7 @@ static int wma_flush_complete_evt_handler(void *handle,
 
 	wmi_event = param_buf->fixed_param;
 	reason_code = wmi_event->reserved0;
+	WMA_LOGD("Received reason code %d from FW", reason_code);
 
 	buf_ptr = (uint8_t *)wmi_event;
 	buf_ptr = buf_ptr + sizeof(wmi_debug_mesg_flush_complete_fixed_param) +