From d52ee762bcc9b2df4b393829a342cda826086435 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Wed, 5 Feb 2020 05:50:21 +0530 Subject: [PATCH] qcacmn: Use qdf_scnprintf in scan instead of snprintf Use qdf_scnprintf instead of snprintf to log channels to store the freq list and print. Change-Id: I4e2f4a93f3de9b9937af3699bde00bb2d1066ca5 CRs-Fixed: 2615319 --- umac/scan/core/src/wlan_scan_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 545aec3420f8..eecbfc0ad285 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -1292,8 +1292,8 @@ static inline void scm_print_scan_req_info(struct scan_req_params *req) return; for (idx = 0; idx < chan_lst->num_chan; idx++) - len += snprintf(chan_buff + len, buff_len - len, "%d ", - chan_lst->chan[idx].freq); + len += qdf_scnprintf(chan_buff + len, buff_len - len, "%d ", + chan_lst->chan[idx].freq); scm_nofl_debug("Freq list[%d]: %s", chan_lst->num_chan, chan_buff);