Re: [PATCH] drivers: most: replace snprintf in show functions with sysfs_emit
From: Johan Hovold
Date: Wed Nov 03 2021 - 04:27:44 EST
On Wed, Nov 03, 2021 at 08:23:13AM +0000, cgel.zte@xxxxxxxxx wrote:
> From: Jing Yao <yao.jing2@xxxxxxxxxx>
>
> coccicheck complains about the use of snprintf() in sysfs show
> funcitons:
> WARNING use scnprintf or sprintf
>
> Use sysfs_emit instead of scnprintf, snprintf or sprintf makes more
> sense.
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: Jing Yao <yao.jing2@xxxxxxxxxx>
Again, no need to include "drivers: " in the Subject, even if in this
case the single commit adding this file also got this wrong.
Johan