[PATCH linux-next] coresight: use sysfs_emit() to instead of scnprintf()
Suzuki K Poulose
suzuki.poulose at arm.com
Thu Sep 29 03:21:11 PDT 2022
On 28/09/2022 15:56, James Clark wrote:
>
>
> On 27/09/2022 12:51, zhangsongyi.cgel at gmail.com wrote:
>> From: zhang songyi <zhang.songyi at zte.com.cn>
>>
>> Follow the advice of the Documentation/filesystems/sysfs.rst and show()
>> should only use sysfs_emit() or sysfs_emit_at() when formatting the value
>> to be returned to user space.
>>
>> Reported-by: Zeal Robot <zealci at zte.com.cn>
>> Signed-off-by: zhang songyi <zhang.songyi at zte.com.cn>
>> ---
>> drivers/hwtracing/coresight/coresight-stm.c | 8 ++++----
>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>
>
> Reviewed-by: James Clark <james.clark at arm.com>
I have queued this locally for now, will push it once the next
cycle is out.
Suzuki
More information about the linux-arm-kernel
mailing list