Re: [PATCH] hwmon: (nct6775) use sysfs_emit instead of sprintf
From: Guenter Roeck
Date: Sun Feb 01 2026 - 19:07:00 EST
On Sun, Feb 01, 2026 at 09:27:21PM +0100, Filippo Muscherà wrote:
> Replace sprintf() with sysfs_emit() in sysfs 'show' functions.
> sysfs_emit() is preferred because it automatically handles the
> buffer size and PAGE_SIZE boundary checks, preventing potential
> buffer overflows.
>
> This aligns the legacy code with the new functions in the driver
> that already utilize sysfs_emit.
>
> Signed-off-by: Filippo Muscherà <filippo.muschera@xxxxxxxxx>
Applied.
Thanks,
Guenter