diff options
author | 2024-04-19 14:36:49 +0800 | |
---|---|---|
committer | 2024-04-29 10:52:03 +0200 | |
commit | 208ba5055691a8e93e3c1d222fe740c2bdc0e2f1 (patch) | |
tree | 3e50400062fe815f76a40f15edbbe0c08ecfecf3 /tools/perf/scripts/python/stackcollapse.py | |
parent | platform/x86: thinkpad_acpi: change sprintf() to sysfs_emit() (diff) | |
download | wireguard-linux-208ba5055691a8e93e3c1d222fe740c2bdc0e2f1.tar.xz wireguard-linux-208ba5055691a8e93e3c1d222fe740c2bdc0e2f1.zip |
platform/x86: msi-laptop: Use sysfs_emit() to replace sprintf()
As Documentation/filesystems/sysfs.rst suggested,
show() should only use sysfs_emit() or sysfs_emit_at() when formatting
the value to be returned to user space.
Signed-off-by: yunshui <jiangyunshui@kylinos.cn>
Reviewed-by: Ai Chao <aichao@kylinos.cn>
Link: https://lore.kernel.org/r/20240419063649.2396461-1-jiangyunshui@kylinos.cn
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions