milos-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
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
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
ldm.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
ldm.h
mac.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
mac.h
Makefile
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