From b443ce806be26c1d44ab3eb610332d24e28d0935 Mon Sep 17 00:00:00 2001 From: sheenam monga Date: Thu, 24 Dec 2020 12:32:51 +0530 Subject: [PATCH] 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 --- components/mlme/dispatcher/src/wlan_mlme_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/mlme/dispatcher/src/wlan_mlme_api.c b/components/mlme/dispatcher/src/wlan_mlme_api.c index 76dc34b1cdb0..04984aa0d6a5 100644 --- a/components/mlme/dispatcher/src/wlan_mlme_api.c +++ b/components/mlme/dispatcher/src/wlan_mlme_api.c @@ -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)