Re: [PATCH v4] coresight: Replace scnprintf() with sysfs_emit() in sysfs show functions

From: Suzuki K Poulose
Date: Mon Jul 21 2025 - 04:35:53 EST


On 19/07/2025 23:45, Chelsy Ratnawat wrote:
Documentation/filesystems/sysfs.rst mentions that show() should only
use sysfs_emit() or sysfs_emit_at() when formating the value to be
returned to user space. So replace scnprintf() with sysfs_emit().

Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@xxxxxxxxx>
---
Changes in v4:
- Applied changes to 5 more files to replace sprintf/scnprintf with
sysfs_emit() and sysfs_emit_at()


Please could you rebase this on coresight tree "next" branch ? There
are conflicts.


https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git/log/?h=next

Suzuki