Re: [PATCH] drivers/perf: convert sysfs sprintf/snprintf family to sysfs_emit
From: Will Deacon
Date: Thu Feb 04 2021 - 08:09:57 EST
On Thu, Feb 04, 2021 at 11:32:51AM +0800, Jiapeng Chong wrote:
> Fix the following coccicheck warning:
>
> ./drivers/perf/arm-cci.c:708:8-16: WARNING: use scnprintf or sprintf.
> ./drivers/perf/arm-cci.c:699:8-16: WARNING: use scnprintf or sprintf.
> ./drivers/perf/arm-cci.c:528:8-16: WARNING: use scnprintf or sprintf.
> ./drivers/perf/arm-cci.c:309:8-16: WARNING: use scnprintf or sprintf.
>
> Reported-by: Abaci Robot<abaci@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
> ---
> drivers/perf/arm-cci.c | 11 +++++------
> 1 file changed, 5 insertions(+), 6 deletions(-)
Looks like the same issue exists for other drivers under drivers/perf/. How
about fixing them all together?
Will