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
This commit is contained in:
Abhishek Singh 2020-02-05 05:50:21 +05:30 • committed by nshrivas
commit d52ee762bc

View file

@ -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);