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)
commitc08d3286caf1ec774b80ebb26e3ec31a0b434973
treefd402c9a7c8cfbf3dcc8984599dcd5275e4e06fb
parentc95c07836fa4c1767ed11d8eca0769c652760e32
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