Now as the latest Documentation/filesystems/sysfs.rst suggested, show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. sysfs_emit validates assumptions made by sysfs and is the correct mechanism to format data for sysfs. So we can do these conversion. Hongbo Li (3): scsi: pmcraid: change snprintf() to sysfs_emit() scsi: aacraid: Use sysfs_emit() to replace the sprintf() scsi: hptiop: Change snprintf() to sysfs_emit() drivers/scsi/aacraid/linit.c | 14 ++++++-------- drivers/scsi/hptiop.c | 4 ++-- drivers/scsi/pmcraid.c | 10 ++++------ 3 files changed, 12 insertions(+), 16 deletions(-) -- 2.34.1