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

From: Kalle Valo
Date: Wed Oct 27 2021 - 03:39:00 EST


cgel.zte@xxxxxxxxx wrote:

> From: Ye Guojin <ye.guojin@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Signed-off-by: Ye Guojin <ye.guojin@xxxxxxxxxx>

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@xxxxxxxxxx/

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