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

Richard Weinberger richard at nod.at
Thu Feb 4 03:16:56 EST 2021

----- 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. 


More information about the linux-mtd mailing list