linux-stable/drivers/s390/char
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
..
con3215.c tty: drop put_tty_driver 2021-07-27 12:17:21 +02:00
con3270.c s390/con3270: use proper type for tasklet function 2021-09-07 13:38:42 +02:00
ctrlchar.c s390/ctrlchar: fix kernel doc comment 2021-09-07 13:38:42 +02:00
ctrlchar.h
defkeymap.c
defkeymap.map
diag_ftp.c
diag_ftp.h
fs3270.c
hmcdrv_cache.c
hmcdrv_cache.h
hmcdrv_dev.c
hmcdrv_dev.h
hmcdrv_ftp.c s390/hmcdrv_ftp: fix kernel doc comment 2021-09-07 13:38:42 +02:00
hmcdrv_ftp.h
hmcdrv_mod.c
Kconfig
keyboard.c
keyboard.h
Makefile
monreader.c
monwriter.c
raw3270.c s390: replace snprintf in show functions with sysfs_emit 2021-11-16 12:29:19 +01:00
raw3270.h
sclp.c s390/sclp: sort out physical vs virtual pointers usage 2021-10-26 15:21:28 +02:00
sclp.h s390/sclp: sort out physical vs virtual pointers usage 2021-10-26 15:21:28 +02:00
sclp_ap.c
sclp_cmd.c s390/dump: introduce boot data 'oldmem_data' 2021-07-27 09:39:16 +02:00
sclp_con.c
sclp_config.c s390/sclp: replace deprecated CPU-hotplug functions 2021-08-05 14:10:53 +02:00
sclp_cpi_sys.c
sclp_cpi_sys.h
sclp_ctl.c
sclp_diag.h
sclp_early.c s390 updates for the 5.16 merge window 2021-11-06 14:48:06 -07:00
sclp_early_core.c s390/boot: move sclp early buffer from fixed address in asm to C 2021-07-27 09:39:15 +02:00
sclp_ftp.c s390/hmcdrv: fix kernel doc comments 2021-10-26 15:21:29 +02:00
sclp_ftp.h
sclp_ocf.c
sclp_pci.c
sclp_quiesce.c
sclp_rw.c
sclp_rw.h
sclp_sd.c s390/sclp: sort out physical vs virtual pointers usage 2021-10-26 15:21:28 +02:00
sclp_sdias.c
sclp_sdias.h
sclp_tty.c tty: drop put_tty_driver 2021-07-27 12:17:21 +02:00
sclp_tty.h
sclp_vt220.c s390/sclp_vt220: fix unused function warning 2021-10-04 09:49:37 +02:00
tape.h
tape_34xx.c
tape_3590.c
tape_3590.h
tape_char.c s390: Fix fall-through warnings for Clang 2021-07-13 14:43:09 -05:00
tape_class.c
tape_class.h
tape_core.c
tape_proc.c
tape_std.c s390/tape: fix timer initialization in tape_std_assign() 2021-11-08 14:17:49 +01:00
tape_std.h
tty3270.c tty: drop put_tty_driver 2021-07-27 12:17:21 +02:00
tty3270.h
vmcp.c
vmlogrdr.c
vmur.c
vmur.h
zcore.c s390/dump: introduce boot data 'oldmem_data' 2021-07-27 09:39:16 +02:00