From 933b1292014e360fc9134f780beb9dec15d0c314 Mon Sep 17 00:00:00 2001 From: sheenam monga Date: Fri, 14 Feb 2020 16:46:00 +0530 Subject: [PATCH] qcacmn: Change wlan driver prints from hex to decimal mode 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. Change-Id: I78f9b7fe0ba590c53ea3e90b982691d91b7453e4 CRs-Fixed: 2620935 --- utils/logging/src/wlan_logging_sock_svc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/logging/src/wlan_logging_sock_svc.c b/utils/logging/src/wlan_logging_sock_svc.c index fa94511c3d..0282a77863 100644 --- a/utils/logging/src/wlan_logging_sock_svc.c +++ b/utils/logging/src/wlan_logging_sock_svc.c @@ -287,8 +287,9 @@ 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, "[%.6s][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); } #ifdef WLAN_MAX_LOGS_PER_SEC