aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorLi Zhijian <[email protected]>2024-03-19 14:31:19 +0800
committerMartin K. Petersen <[email protected]>2024-04-08 22:04:32 -0400
commiteab302e89f3d736715bae94d032a20b2a6f5403e (patch)
treeab321a0f3ee9bc1ba4c4a9763f36d06a040e04c7 /scripts/generate_rust_analyzer.py
parent9bd8e41358a52ff2be312a0ab7bd6426ba4c6fe3 (diff)
scsi: snic: Convert sprintf() family to sysfs_emit() family
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(). sprintf() and scnprintf() will be converted as well if they have. Generally, this patch is generated by make coccicheck M=<path/to/file> MODE=patch \ COCCI=scripts/coccinelle/api/device_attr_show.cocci No functional change intended CC: Karan Tilak Kumar <[email protected]> CC: Sesidhar Baddela <[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