]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_IDLETIMER: replace snprintf in show functions with sysfs_emit
authorJing Yao <yao.jing2@zte.com.cn>
Thu, 4 Nov 2021 11:49:11 +0000 (11:49 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Nov 2021 11:14:05 +0000 (12:14 +0100)
commit71b959d2bebd6d741f68f292d456eae7dd45e9f3
treefd402c9a7c8cfbf3dcc8984599dcd5275e4e06fb
parent63dc8f595109afae2133a41266337bc8550bdb93
netfilter: xt_IDLETIMER: 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: Jing Yao <yao.jing2@zte.com.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_IDLETIMER.c