diff options
author | Like Xu <likexu@tencent.com> | 2023-06-25 15:34:38 +0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-07-31 13:55:26 -0700 |
commit | 1d6664fadda3e028b8220ba1ba487a928e801825 (patch) | |
tree | 197f81e5a4d6b4f1a6e41618c7de9542ecb13ac6 /tools/perf/scripts/python | |
parent | fdf0eaf11452d72945af31804e2a1048ee1b574c (diff) |
KVM: x86: Use sysfs_emit() instead of sprintf()
Use sysfs_emit() instead of the sprintf() for sysfs entries. sysfs_emit()
knows the maximum of the temporary buffer used for outputting sysfs
content and avoids overrunning the buffer length.
Signed-off-by: Like Xu <likexu@tencent.com>
Link: https://lore.kernel.org/r/20230625073438.57427-1-likexu@tencent.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions