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

From: Rafael J. Wysocki

Date: Fri Mar 06 2026 - 13:35:18 EST


On Tue, Mar 3, 2026 at 5:12 AM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
>
> 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>

Applied as 7.1 material, thanks!