Browse Source

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
Abhishek Singh 5 years ago
parent
commit
d52ee762bc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      umac/scan/core/src/wlan_scan_manager.c

+ 2 - 2
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;
 		return;
 
 
 	for (idx = 0; idx < chan_lst->num_chan; idx++)
 	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);
 	scm_nofl_debug("Freq list[%d]: %s", chan_lst->num_chan, chan_buff);