Skip to content
Snippets Groups Projects
Commit 8e71afb9 authored by zhangguopeng's avatar zhangguopeng Committed by Jens Axboe
Browse files

block: Replace sprintf() with sysfs_emit()


Per Documentation/filesystems/sysfs.rst, show() should only use
sysfs_emit() or sysfs_emit_at() when formatting the value to be
returned to user space.

No functional change intended.

Signed-off-by: default avatarzhangguopeng <zhangguopeng@kylinos.cn>
Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241107104258.29742-1-zhangguopeng@kylinos.cn


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4122fef1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment