Re: [PATCH v2] staging: greybus: arche: use sysfs_emit() instead of sprintf()
From: Dan Carpenter
Date: Thu Feb 26 2026 - 03:02:39 EST
On Thu, Feb 26, 2026 at 07:48:58AM +0000, Ruslan Valiyev wrote:
> Replace sprintf() with sysfs_emit() in state_show() sysfs attribute
> callbacks in arche-platform.c and arche-apb-ctrl.c.
>
> Checkpatch complains about code using sprintf(). This code here is
> obviously safe as-is, but it would be more appropriate to use
> sysfs_emit().
>
> Signed-off-by: Ruslan Valiyev <linuxoid@xxxxxxxxx>
> ---
Thanks!
Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
regards,
dan carpenter