mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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:
parent
8919e1aabf
commit
b443ce806b
1 changed files with 3 additions and 3 deletions
|
|
@ -3688,9 +3688,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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue