vhost-scsi: convert sysfs snprintf and sprintf to sysfs_emit
authorBo Liu <liubo03@inspur.com>
Sun, 29 Jan 2023 09:11:45 +0000 (04:11 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:58 +0000 (19:26 -0500)
commitb3d4f02ee7a23716de2fffe232fd810bf0387bf1
treeace38c31a0dd326413555f4081af4cef8eb9d56f
parent36871fb92b70599e6755d92ebdfcba7baa3d4f85
vhost-scsi: convert sysfs snprintf and sprintf to sysfs_emit

Follow the advice of the Documentation/filesystems/sysfs.rst
and show() should only use sysfs_emit() or sysfs_emit_at()
when formatting the value to be returned to user space.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Message-Id: <20230129091145.2837-1-liubo03@inspur.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/scsi.c