diff options
author | Li Zhijian <[email protected]> | 2024-01-16 12:51:31 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-01-29 20:40:48 -0500 |
commit | 1ad717c92925e0d4d794ea04f45a4ba121d2da69 (patch) | |
tree | 46c590e9c58f6ea4b6ba7723b8533b03d85cb6ec /scripts/generate_rust_analyzer.py | |
parent | bc978cc18d46dd54160f6c29aaf9475772686dfc (diff) |
scsi: fnic: 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/fnic/fnic_attrs.c:17:8-16: WARNING: please use sysfs_emit
> ./drivers/scsi/fnic/fnic_attrs.c:23:8-16: WARNING: please use sysfs_emit
> ./drivers/scsi/fnic/fnic_attrs.c:31:8-16: WARNING: please use sysfs_emit
No functional change intended
CC: Satish Kharat <[email protected]>
CC: Sesidhar Baddela <[email protected]>
CC: Karan Tilak Kumar <[email protected]>
CC: James E.J. Bottomley <[email protected]>
CC: Martin K. Petersen <[email protected]>
CC: [email protected]
Signed-off-by: Li Zhijian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Karan Tilak Kumar <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions