linux/block/partitions
Thorsten Blum a175ee8273 block: use sysfs_emit in sysfs show functions
Replace sprintf() with sysfs_emit() in sysfs show functions.
sysfs_emit() is preferred for formatting sysfs output because it
provides safer bounds checking.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://patch.msgid.link/20260402164958.894879-4-thorsten.blum@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-04-03 05:07:46 -06:00
..
acorn.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
aix.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
amiga.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
atari.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
atari.h block: declare all partition detection routines in check.h 2020-03-24 07:57:08 -06:00
check.h block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
cmdline.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
core.c block: use sysfs_emit in sysfs show functions 2026-04-03 05:07:46 -06:00
efi.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
efi.h block: remove genhd.h 2022-02-02 07:49:59 -07:00
ibm.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
karma.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
Kconfig block: add support for partition table defined in OF 2024-10-22 08:14:56 -06:00
ldm.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
ldm.h partitions: ldm: remove the initial kernel-doc notation 2025-01-13 07:47:19 -07:00
mac.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
mac.h block: declare all partition detection routines in check.h 2020-03-24 07:57:08 -06:00
Makefile block: add support for partition table defined in OF 2024-10-22 08:14:56 -06:00
msdos.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
of.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
osf.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
sgi.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
sun.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
sysv68.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
ultrix.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00