From c396c9015afa8affd55de596639390ef45ab4c29 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Wed, 2 May 2018 15:51:35 -0700 Subject: [PATCH] qcacmn: 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: 2235276 --- utils/logging/src/wlan_logging_sock_svc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/logging/src/wlan_logging_sock_svc.c b/utils/logging/src/wlan_logging_sock_svc.c index fa6477a8de..9a4332ff8e 100644 --- a/utils/logging/src/wlan_logging_sock_svc.c +++ b/utils/logging/src/wlan_logging_sock_svc.c @@ -706,7 +706,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", __func__); + "%s: Sending flush done to userspace reason code %d", + __func__, reason_code); wlan_report_log_completion(is_fatal, indicator, reason_code, ring_id);