[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YYJH/lYLQJdM2H1p@hovoldconsulting.com>
Date: Wed, 3 Nov 2021 09:27:42 +0100
From: Johan Hovold <johan@...nel.org>
To: cgel.zte@...il.com
Cc: gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
Jing Yao <yao.jing2@....com.cn>, Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH] drivers: most: replace snprintf in show functions with
sysfs_emit
On Wed, Nov 03, 2021 at 08:23:13AM +0000, cgel.zte@...il.com wrote:
> From: Jing Yao <yao.jing2@....com.cn>
>
> 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@....com.cn>
> Signed-off-by: Jing Yao <yao.jing2@....com.cn>
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
Powered by blists - more mailing lists