Re: [PATCH] scsi:st.c replace snprintf() with sysfs_emit()
From: Bart Van Assche
Date: Thu Jul 24 2025 - 11:28:25 EST
On 7/23/25 5:58 PM, Rujra Bhatt wrote:
replace snprintf() with sysfs_emit() or sysfs_emit_at() in st.c file to
follow kernel's guidelines from Documentation/filesystems/sysfs.rst
This improves safety, consistency and easier to maintain and update it
in the future.
sysfs_emit() is for new code only. There is no requirement to convert
existing code to sysfs_emit() / sysfs_emit_at().
Bart.