Re: [PATCH] accel/qaic: Replace snprintf() with sysfs_emit() in sysfs show functions
From: Jeff Hugo
Date: Mon Oct 06 2025 - 16:40:25 EST
On 8/22/2025 5:28 AM, Chelsy Ratnawat wrote:
Documentation/filesystems/sysfs.rst mentions that show() should only
use sysfs_emit() or sysfs_emit_at() when formating the value to be
returned to user space. So replace scnprintf() with sysfs_emit().
Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@xxxxxxxxx>
Reviewed-by: Jeff Hugo <jeff.hugo@xxxxxxxxxxxxxxxx>
Applied to drm-misc-next. I fixed two typos in the commit text when applying.
-Jeff