From dcce809079f587c14ba0235a2043ed060d2be3c9 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Wed, 2 May 2018 15:48:17 -0700 Subject: [PATCH] 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 --- core/cds/src/cds_api.c | 4 ++++ core/wma/src/wma_main.c | 1 + 2 files changed, 5 insertions(+) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 2f0f6b94b7ed..416a3ebac8dc 100644 --- a/core/cds/src/cds_api.c +++ b/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; } diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 80600fa7cfbb..eaa8616a88b2 100644 --- a/core/wma/src/wma_main.c +++ b/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) +