Răsfoiți Sursa

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
sheenam monga 5 ani în urmă
părinte
comite
933b129201
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      utils/logging/src/wlan_logging_sock_svc.c

+ 3 - 2
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