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

From: Richard Weinberger
Date: Thu Feb 04 2021 - 03:18:06 EST


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

Thanks,
//richard