diff options
author | zhangguopeng <zhangguopeng@kylinos.cn> | 2024-11-07 18:42:58 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-07 15:30:30 -0700 |
commit | 8e71afb94d6ed59055b67dadbc423c70104f21a9 (patch) | |
tree | 2ef5e642071f313ad55c62e1d30d2b0d7fd43b07 /scripts/generate_rust_analyzer.py | |
parent | 4122fef16b172f7c1838fcf74340268c86ed96db (diff) |
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: zhangguopeng <zhangguopeng@kylinos.cn>
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241107104258.29742-1-zhangguopeng@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions