Re: [PATCH] staging: replace snprintf with sysfs_emit

From: Greg KH
Date: Tue Nov 30 2021 - 01:42:46 EST


On Tue, Nov 30, 2021 at 08:07:21AM +0800, davidcomponentone@xxxxxxxxx wrote:
> From: Yang Guang <yang.guang5@xxxxxxxxxx>
>
> coccinelle report:
> ./drivers/staging/fieldbus/dev_core.c:73:8-16:
> WARNING: use scnprintf or sprintf
>
> Use sysfs_emit instead of scnprintf or sprintf makes more sense.
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>

No, the coccinelle scripts reported this.

> Signed-off-by: Yang Guang <yang.guang5@xxxxxxxxxx>

None of these email addresses match up with the address you sent this
patch from, please fix.

thanks,

greg k-h