[PATCH] serial: 8259: replace snprintf with sysfs_emit
Andy Shevchenko
andy.shevchenko at gmail.com
Wed Feb 9 00:21:40 PST 2022
On Wed, Feb 9, 2022 at 9:24 AM <davidcomponentone at gmail.com> wrote:
>
> From: Yang Guang <yang.guang5 at zte.com.cn>
>
> coccinelle report:
> ./drivers/tty/serial/8250/8250_aspeed_vuart.c:85:8-16:
> WARNING: use scnprintf or sprintf
> ./drivers/tty/serial/8250/8250_aspeed_vuart.c:174:8-16:
> WARNING: use scnprintf or sprintf
> ./drivers/tty/serial/8250/8250_aspeed_vuart.c:127:8-16:
> WARNING: use scnprintf or sprintf
>
> Use sysfs_emit instead of scnprintf or sprintf makes more sense.
Subject should start with "serial: 8250_aspeed_vuart: "
> Reported-by: Zeal Robot <zealci at zte.com.cn>
> Signed-off-by: Yang Guang <yang.guang5 at zte.com.cn>
> Signed-off-by: David Yang <davidcomponentone at gmail.com>
Who is the author(s)?
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list