소스 검색

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 년 전
부모
커밋
d52ee762bc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
 
 	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);