diff options
author | zhangheng <zhangheng@kylinos.cn> | 2024-12-20 18:23:37 +0800 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-12-22 15:42:15 +0100 |
commit | 419a40cc2bdda0eadd643de55b70f212354761a2 (patch) | |
tree | 617eb6ddf5ee840004d6935216c307f7ada37c0b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0f28374e99a46bfb5ece60af0791ccc840a6aa89 (diff) |
w1: core: use sysfs_emit() instead of sprintf()
Follow the advice in Documentation/filesystems/sysfs.rst:
show() should only use sysfs_emit() or sysfs_emit_at() when formatting
the value to be returned to user space.
Signed-off-by: zhangheng <zhangheng@kylinos.cn>
Link: https://lore.kernel.org/r/20241220102337.295864-1-zhangheng@kylinos.cn
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions