linux/drivers/scsi/isci
Li Zhijian 5fbf37e530 scsi: isci: Convert snprintf() to sysfs_emit()
Per filesystems/sysfs.rst, show() should only use sysfs_emit() or
sysfs_emit_at() when formatting the value to be returned to user space.

coccinelle complains that there are still a couple of functions that use
snprintf(). Convert them to sysfs_emit().

> ./drivers/scsi/isci/init.c:140:8-16: WARNING: please use sysfs_emit

No functional change intended

CC: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
CC: James E.J. Bottomley <jejb@linux.ibm.com>
CC: Martin K. Petersen <martin.petersen@oracle.com>
CC: linux-scsi@vger.kernel.org
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Link: https://lore.kernel.org/r/20240116045151.3940401-25-lizhijian@fujitsu.com
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2024-01-29 20:40:49 -05:00
..
host.c
host.h scsi: libsas: Delete struct scsi_core 2023-08-21 17:50:58 -04:00
init.c scsi: isci: Convert snprintf() to sysfs_emit() 2024-01-29 20:40:49 -05:00
isci.h
Makefile
phy.c scsi: libsas: Delete enum sas_phy_type 2023-08-21 17:50:57 -04:00
phy.h
port_config.c
port.c
port.h
probe_roms.c
probe_roms.h
registers.h
remote_device.c
remote_device.h
remote_node_context.c
remote_node_context.h
remote_node_table.c
remote_node_table.h
request.c scsi: isci: Remove redundant check in isci_task_request_build() 2023-12-05 21:13:15 -05:00
request.h scsi: isci: Remove redundant check in isci_task_request_build() 2023-12-05 21:13:15 -05:00
sas.h
scu_completion_codes.h
scu_event_codes.h
scu_remote_node_context.h
scu_task_context.h scsi: isci: Fix comment typo 2023-06-28 21:45:27 -04:00
task.c scsi: isci: Remove redundant check in isci_task_request_build() 2023-12-05 21:13:15 -05:00
task.h
unsolicited_frame_control.c
unsolicited_frame_control.h