diff options
| author | Rajeev Kumar <rajekuma@codeaurora.org> | 2018-05-02 12:04:27 -0700 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-05-16 08:45:03 -0700 |
| commit | 44549429b2bb7c01be09b88b3aac7a95c500d3ab (patch) | |
| tree | e8f0277c89a6bd35ecad162785465dedf4fbda70 /core | |
| parent | ad6423a03e5c011331ded266b2063ee2bef26c43 (diff) | |
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
Diffstat (limited to 'core')
| -rw-r--r-- | core/cds/src/cds_api.c | 3 | ||||
| -rw-r--r-- | core/utils/logging/src/wlan_logging_sock_svc.c | 6 | ||||
| -rw-r--r-- | core/wma/src/wma_main.c | 1 |
3 files changed, 7 insertions, 3 deletions
diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index fe22eb106753..a74a43464cda 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -2208,6 +2208,9 @@ 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/utils/logging/src/wlan_logging_sock_svc.c b/core/utils/logging/src/wlan_logging_sock_svc.c index f312de5411a2..d93653764b74 100644 --- a/core/utils/logging/src/wlan_logging_sock_svc.c +++ b/core/utils/logging/src/wlan_logging_sock_svc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -741,8 +741,8 @@ static void send_flush_completion_to_user(uint8_t ring_id) /* Error on purpose, so that it will get logged in the kmsg */ LOGGING_TRACE(QDF_TRACE_LEVEL_DEBUG, - "%s: Sending flush done to userspace, recovery: %d", - __func__, recovery_needed); + "%s: Sending flush done to userspace reson_code %d, recovery: %d", + __func__, reason_code, recovery_needed); wlan_report_log_completion(is_fatal, indicator, reason_code, ring_id); diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index eee733b3b4f0..6f2c77f1db58 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -2079,6 +2079,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) + |
