Re: [PATCH] scsi: hisi_sas: use sysfs_emit() in v3 hw show() functions

Greg KH
2025-07-12T14:43:12Z

On Sat, Jul 12, 2025 at 05:28:03PM +0300, Khaled Elnaggar wrote:
> Replace scnprintf() with sysfs_emit() in several sysfs show()
> callbacks in hisi_sas_v3_hw.c. This is recommended in
> Documentation/filesystems/sysfs.rst for formatting values returned to
> userspace.

For new users, yes, but what's wrong with these existing calls? They
still work properly, so why change them?

thanks,

greg k-h