aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorLi Zhijian <[email protected]>2024-03-19 13:45:27 +0800
committerJiri Kosina <[email protected]>2024-04-03 13:42:04 +0200
commit209eb1f30e9bb305c92f0a53ce6f6ddf5a9f4060 (patch)
tree112ac8c8921b8044e00afcd8e50cb122440e1181 /tools/testing/selftests/bpf/progs/test_autoload.c
parent0336d4e997a0c384b44026935f0e19ad71d27b06 (diff)
HID: corsair,lenovo: 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: Jiri Kosina <[email protected]> CC: Benjamin Tissoires <[email protected]> CC: [email protected] Signed-off-by: Li Zhijian <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions