]> git.baikalelectronics.ru Git - kernel.git/commit
char: ipmi: replace snprintf in show functions with sysfs_emit
authorYe Guojin <ye.guojin@zte.com.cn>
Thu, 21 Oct 2021 11:06:08 +0000 (11:06 +0000)
committerCorey Minyard <cminyard@mvista.com>
Thu, 21 Oct 2021 11:54:12 +0000 (06:54 -0500)
commit7d9ce8799b0ba3468c3cbfae114cc64256c6bea8
tree3cae2587f8b69e9966896821daedf9cd0065523c
parent81bebf9a9fd461a3413f07b76a04a0c88db192be
char: ipmi: 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, snprintf or sprintf makes more
sense.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Message-Id: <20211021110608.1060260-1-ye.guojin@zte.com.cn>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/ipmi/ipmi_ssif.c