diff options
author | Bean Huo <beanhuo@micron.com> | 2021-01-06 22:15:41 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-01-07 22:42:44 -0500 |
commit | d9edeb8b4768296755171bd50bd945136d89b5c3 (patch) | |
tree | be0e97ac441733a283ada8eb7b800a3066426ee8 /drivers/scsi/be2iscsi | |
parent | aaac0ea983906cb145e5decfe6252fa787edcc4b (diff) |
scsi: ufs: Replace sprintf and snprintf with sysfs_emit
sprintf and snprintf may cause output defect in sysfs content, it is better
to use new added sysfs_emit function which knows the size of the temporary
buffer.
Link: https://lore.kernel.org/r/20210106211541.23039-1-huobean@gmail.com
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi')
0 files changed, 0 insertions, 0 deletions