diff options
author | Rahul Kumar <rk0006818@gmail.com> | 2025-06-27 09:22:56 +0530 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-07-03 19:56:51 -0600 |
commit | 264a3fdab2365395e43d3a0b40162a29e61ffa22 (patch) | |
tree | 033c1280594c6ae40086383df55a82f5a8d5bc74 /scripts/lib/kdoc/kdoc_output.py | |
parent | 39107ccbc6967461ed8471e5a7a881e4429ecf31 (diff) |
block: zram: replace scnprintf() with sysfs_emit() in *_show() functions
Replace scnprintf() with sysfs_emit() or sysfs_emit_at() in sysfs
*_show() functions in zram_drv.c to follow the kernel's guidelines
from Documentation/filesystems/sysfs.rst.
This improves consistency, safety, and makes the code easier to
maintain and update in the future.
Signed-off-by: Rahul Kumar <rk0006818@gmail.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Link: https://lore.kernel.org/r/20250627035256.1120740-1-rk0006818@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions