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

Andrew Donnellan ajd at linux.ibm.com
Fri Jun 20 18:51:45 AEST 2025


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 <ankitchauhan2065 at gmail.com>

Thanks for the cleanup!

Acked-by: Andrew Donnellan <ajd at linux.ibm.com>

-- 
Andrew Donnellan    OzLabs, ADL Canberra
ajd at linux.ibm.com   IBM Australia Limited


More information about the Linuxppc-dev mailing list