qcacld-3.0: Use function qdf_snprint for time stamp conversion
Currently for converting timestamp to string qdf_snprintf function is used which may not print timestamp correctly. Use qdf_snprint instead of qdf_snprintf to print correct timestamp provided by fw. Change-Id: I803f678dc38afc03131e589a820d129dc38380ce CRs-Fixed: 2835199
This commit is contained in:
@@ -3711,9 +3711,9 @@ void mlme_get_converted_timestamp(uint32_t timestamp, char *time)
|
||||
secs = timestamp / 1000;
|
||||
mins = secs / 60;
|
||||
hr = mins / 60;
|
||||
qdf_snprintf(time, TIME_STRING_LEN, "[%02d:%02d:%02d.%06u]",
|
||||
(hr % 24), (mins % 60), (secs % 60),
|
||||
(timestamp % 1000) * 1000);
|
||||
qdf_snprint(time, TIME_STRING_LEN, "[%02d:%02d:%02d.%06u]",
|
||||
(hr % 24), (mins % 60), (secs % 60),
|
||||
(timestamp % 1000) * 1000);
|
||||
}
|
||||
|
||||
#if defined(WLAN_SAE_SINGLE_PMK) && defined(WLAN_FEATURE_ROAM_OFFLOAD)
|
||||
|
مرجع در شماره جدید
Block a user