Re: [PATCH] scsi: qla4xxx: Replace snprintf() with sysfs_emit()

From: Len Bao
Date: Sat Aug 23 2025 - 04:14:53 EST


Hi Martin,

On Tue, Aug 19, 2025 at 10:08:31PM -0400, Martin K. Petersen wrote:
>
> Hi Len!
>
> > Documentation/filesystems/sysfs.rst mentions that show() should only
> > use sysfs_emit()
>
> It's a "should", not a "shall".
>
> sysfs.rst was recently amended to emphasize that this suggestion applies
> to new implementations only. See commit 2115dc3e3376 ("docs:
> filesystems: sysfs: Recommend sysfs_emit() for new code only").

Thanks for the guidance. Sorry for the invonvenience. It's my fault.

Regards,
Len

>
> Thanks!
>
> --
> Martin K. Petersen