[PATCH] misc: ocxl: Replace scnprintf() with sysfs_emit() in sysfs show functions

2025-06-20 Thread Ankit Chauhan
Replace scnprintf() with sysfs_emit() in sysfs show functions. These helpers are preferred in sysfs callbacks because they automatically handle buffer size and improve safety and readability. Signed-off-by: Ankit Chauhan --- drivers/misc/ocxl/sysfs.c | 12 ++-- 1 file changed, 6 insertio

Re: [PATCH] misc: ocxl: Replace scnprintf() with sysfs_emit() in sysfs show functions

2025-06-20 Thread Andrew Donnellan
On Fri, 2025-06-20 at 08:17 +0530, Ankit Chauhan wrote: > Replace scnprintf() with sysfs_emit() in sysfs show functions. > These helpers are preferred in sysfs callbacks because they > automatically > handle buffer size and improve safety and readability. > > Signed-off-by: Ankit Chauhan Thanks