Re: [PATCH] cpufreq: governor: Use sysfs_emit in sysfs show functions

From: Viresh Kumar

Date: Mon Mar 02 2026 - 23:12:56 EST


On 23-02-26, 22:03, Thorsten Blum wrote:
> Replace sprintf() with sysfs_emit() in sysfs show functions.
> sysfs_emit() is preferred for formatting sysfs output because it
> provides safer bounds checking. No functional changes.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/cpufreq/cpufreq_governor.h | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

--
viresh