Commit b6ecb57
perf/core: Use sysfs_emit() instead of scnprintf()
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."
No change in functionality intended.
[ mingo: Updated the changelog ]
Signed-off-by: XieLudan <xie.ludan@zte.com.cn>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250315141738452lXIH39UJAXlCmcATCzcBv@zte.com.cn1 parent fd3f5d3 commit b6ecb57
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11713 | 11713 | | |
11714 | 11714 | | |
11715 | 11715 | | |
11716 | | - | |
| 11716 | + | |
11717 | 11717 | | |
11718 | 11718 | | |
11719 | 11719 | | |
| |||
11724 | 11724 | | |
11725 | 11725 | | |
11726 | 11726 | | |
11727 | | - | |
| 11727 | + | |
11728 | 11728 | | |
11729 | 11729 | | |
11730 | 11730 | | |
| |||
11735 | 11735 | | |
11736 | 11736 | | |
11737 | 11737 | | |
11738 | | - | |
| 11738 | + | |
11739 | 11739 | | |
11740 | 11740 | | |
11741 | 11741 | | |
| |||
0 commit comments