diff options
author | Ye Guojin <ye.guojin@zte.com.cn> | 2021-10-22 11:06:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-22 11:25:39 +0200 |
commit | 714f1af14bb0c829a33ad68c4ef7d622618ce702 (patch) | |
tree | 42b07141e0625114e713c5ee6603eded2f68a26f /drivers/base | |
parent | Merge tag 'icc-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dja... (diff) | |
download | linux-714f1af14bb0c829a33ad68c4ef7d622618ce702.tar.xz linux-714f1af14bb0c829a33ad68c4ef7d622618ce702.zip |
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>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions