Replace calls to scnprintf() with sysfs_emit() in sysfs show functions.
These helpers are preferred in sysfs callbacks because they automatically
handle buffer sizing (PAGE_SIZE) and improve safety and readability.
Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@xxxxxxxxx>
---
.../hwtracing/coresight/coresight-etm-perf.c | 4 +-
.../coresight/coresight-etm3x-sysfs.c | 2 +-
.../coresight/coresight-etm4x-sysfs.c | 108 +++++++++---------
drivers/hwtracing/coresight/coresight-stm.c | 8 +-