[PATCH] libertas: replace snprintf in show functions with sysfs_emit

Kalle Valo kvalo at codeaurora.org
Wed Oct 27 00:38:41 PDT 2021


cgel.zte at gmail.com wrote:

> From: Ye Guojin <ye.guojin at zte.com.cn>
> 
> coccicheck complains about the use of snprintf() in sysfs show
> functions:
> WARNING  use scnprintf or sprintf
> 
> Use sysfs_emit instead of scnprintf or sprintf makes more sense.
> 
> Reported-by: Zeal Robot <zealci at zte.com.cn>
> Signed-off-by: Ye Guojin <ye.guojin at zte.com.cn>

Patch applied to wireless-drivers-next.git, thanks.

d3c6daa174ff libertas: replace snprintf in show functions with sysfs_emit

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20211022090438.1065286-1-ye.guojin@zte.com.cn/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches




More information about the libertas-dev mailing list