linux/drivers/md/dm-sysfs.c
Vivek BalachandharTN 4929ba5c5b dm: sysfs: use sysfs_emit() in dm-sysfs.c
Replace sprintf()+strlen() with sysfs_emit(), the preferred helper for
sysfs show() routines. sysfs_emit() returns the number of bytes written,
guarantees NUL-termination, and clamps to PAGE_SIZE-1.

Reference: Documentation/filesystems/sysfs.rst.

No functional change intended.

Signed-off-by: Vivek BalachandharTN <vivek.balachandhar@gmail.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
2025-10-20 15:22:21 +02:00

145 lines
3.2 KiB