Ye Guojin 714f1af14b misc: enclosure: 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>
Link: https://lore.kernel.org/r/20211022090604.1065367-1-ye.guojin@zte.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-22 11:25:39 +02:00
..
2021-05-14 13:43:26 +02:00
2021-09-27 15:39:40 +02:00
2021-10-18 09:29:27 +02:00
2021-05-13 17:03:20 +02:00
2021-10-18 09:29:27 +02:00
2021-10-05 15:47:18 +02:00
2021-03-02 22:41:23 +11:00
2021-05-21 15:05:08 +02:00
2021-09-07 19:13:42 -07:00