Re: [PATCH linux-next] coresight: use sysfs_emit() to instead of scnprintf()

From: Suzuki K Poulose
Date: Thu Sep 29 2022 - 06:21:29 EST


On 28/09/2022 15:56, James Clark wrote:


On 27/09/2022 12:51, zhangsongyi.cgel@xxxxxxxxx wrote:
From: zhang songyi <zhang.songyi@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: zhang songyi <zhang.songyi@xxxxxxxxxx>


---
drivers/hwtracing/coresight/coresight-stm.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)


Reviewed-by: James Clark <james.clark@xxxxxxx>


I have queued this locally for now, will push it once the next
cycle is out.

Suzuki