Re: [PATCH] mtd: convert sysfs sprintf/snprintf family to sysfs_emit

2021-02-04 Thread Richard Weinberger
- Ursprüngliche Mail - >> Fix the following coccicheck warning: >> >> ./drivers/mtd/mtdcore.c: WARNING: use scnprintf or sprintf. > > That's not what you do in the below change :) Well, sysfs_emit() is the sysfs equivalent of scnprintf(). But the patch fails to explain *why* it is needed

Re: [PATCH] mtd: convert sysfs sprintf/snprintf family to sysfs_emit

2021-02-04 Thread Miquel Raynal
Hi Jiapeng, Jiapeng Chong wrote on Thu, 4 Feb 2021 11:55:21 +0800: > Fix the following coccicheck warning: > > ./drivers/mtd/mtdcore.c: WARNING: use scnprintf or sprintf. That's not what you do in the below change :) > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > driv

[PATCH] mtd: convert sysfs sprintf/snprintf family to sysfs_emit

2021-02-03 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/mtd/mtdcore.c: WARNING: use scnprintf or sprintf. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/mtd/mtdcore.c | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/drivers/mtd