summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsheenam monga <shebala@codeaurora.org>2020-02-14 16:46:00 +0530
committerchenpaul <chenpaul@google.com>2020-03-13 16:22:37 +0800
commit448b3572a30403ce2defb93a3c0c6f597b02551c (patch)
treefe90611d6af35f9627fbe5ea0ba064e7693df97c
parent563fd1455005f0425c764942e9ff0f01e5eb810f (diff)
downloadqca-wfi-host-cmn-android-msm-coral-4.14-r-preview-3.tar.gz
qcacmn: Change wlan driver prints from hex to decimal modeandroid-r-preview-3_r0.7android-msm-coral-4.14-r-preview-3
Currently, wlan driver prints id in hex mode and fw prints in decimal mode. Unnecessary hex to dec conversion conversion is required while comparing with fw logs. Fix is to change driver timestamp log from hex to decimal. Bug: 149183175 Change-Id: I78f9b7fe0ba590c53ea3e90b982691d91b7453e4 CRs-Fixed: 2620935
-rw-r--r--utils/logging/src/wlan_logging_sock_svc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/logging/src/wlan_logging_sock_svc.c b/utils/logging/src/wlan_logging_sock_svc.c
index 0df84a413..6fae12e57 100644
--- a/utils/logging/src/wlan_logging_sock_svc.c
+++ b/utils/logging/src/wlan_logging_sock_svc.c
@@ -231,8 +231,10 @@ static int wlan_add_user_log_time_stamp(char *tbuf, size_t tbuf_sz, uint64_t ts)
qdf_get_time_of_the_day_in_hr_min_sec_usec(time_buf, sizeof(time_buf));
- return scnprintf(tbuf, tbuf_sz, "[%.16s][0x%llx]%s",
- current_process_name(), ts, time_buf);
+ return scnprintf(tbuf, tbuf_sz, "[%.6s][%llu]%s",
+ current_process_name(), (unsigned long long)ts,
+ time_buf);
+
}
#else
static int wlan_add_user_log_time_stamp(char *tbuf, size_t tbuf_sz, uint64_t ts)