libertas: replace snprintf in show functions with sysfs_emit
authorYe Guojin <ye.guojin@zte.com.cn>
Fri, 22 Oct 2021 09:04:38 +0000 (09:04 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Oct 2021 07:38:29 +0000 (10:38 +0300)
commitd3c6daa174ff53b61215d8e67c85d466adf57cad
treeac2539a121fd87749e81ac8b39a36bb070a50b29
parent5d44f0672319c19a41ff0e0e4f0d64164cf9752b
libertas: replace snprintf in show functions with sysfs_emit

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@zte.com.cn>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211022090438.1065286-1-ye.guojin@zte.com.cn
drivers/net/wireless/marvell/libertas/mesh.c