WSL2-Linux-Kernel/drivers/s390
Qing Wang 4b9e04367a s390: replace snprintf in show functions with sysfs_emit
show() must not use snprintf() when formatting the value to be
returned to user space.

Fix the coccicheck warnings:
WARNING: use scnprintf or sprintf.

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Signed-off-by: Qing Wang <wangqing@vivo.com>
Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Acked-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/1634280655-4908-1-git-send-email-wangqing@vivo.com
[hca@linux.ibm.com: fix indentation]
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2021-11-16 12:29:19 +01:00
..
block s390: replace snprintf in show functions with sysfs_emit 2021-11-16 12:29:19 +01:00
char s390: replace snprintf in show functions with sysfs_emit 2021-11-16 12:29:19 +01:00
cio s390: replace snprintf in show functions with sysfs_emit 2021-11-16 12:29:19 +01:00
crypto s390 updates for the 5.16 merge window 2021-11-06 14:48:06 -07:00
net s390/qeth: update kerneldoc for qeth_add_hw_header() 2021-10-25 13:58:19 +01:00
scsi scsi: zfcp: Switch to attribute groups 2021-10-16 21:45:53 -04:00
virtio
Makefile