Re: [PATCH] misc: ocxl: Replace scnprintf() with sysfs_emit() in sysfs show functions
From: Andrew Donnellan
Date: Fri Jun 20 2025 - 04:52:34 EST
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@xxxxxxxxx>
Thanks for the cleanup!
Acked-by: Andrew Donnellan <ajd@xxxxxxxxxxxxx>
--
Andrew Donnellan OzLabs, ADL Canberra
ajd@xxxxxxxxxxxxx IBM Australia Limited