]> Gentwo Git Trees - linux/.git/commit
perf/core: Use sysfs_emit() instead of scnprintf()
authorXieLudan <xie.ludan@zte.com.cn>
Sat, 15 Mar 2025 06:17:38 +0000 (14:17 +0800)
committerIngo Molnar <mingo@kernel.org>
Sun, 16 Mar 2025 11:38:27 +0000 (12:38 +0100)
commitb6ecb57f1fec114cfa19b1bf06f25f904ca928f9
tree753aaf10611dd634bdf7032706ec551a3770d2ca
parentfd3f5d385a52531589c8a7a26d9e108aa1d3f52e
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.cn
kernel/events/core.c