Re: [PATCH] bus: mhi: replace snprintf with sysfs_emit

From: Kees Cook
Date: Tue Apr 26 2022 - 17:26:55 EST


On Tue, Apr 26, 2022 at 08:58:59PM +0800, Wan Jiabing wrote:
> Fix following coccicheck warning:
> ./drivers/bus/mhi/host/init.c:89:8-16: WARNING: use scnprintf or sprintf
>
> Use sysfs_emit and sysfs_emit_at instead of snprintf.
>
> Signed-off-by: Wan Jiabing <wanjiabing@xxxxxxxx>

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook