diff options
author | Li Zhijian <[email protected]> | 2024-03-19 11:43:50 +0800 |
---|---|---|
committer | Wei Liu <[email protected]> | 2024-04-10 21:23:16 +0000 |
commit | d9ea7a3f66a5c7e1a2f73cf4b20f5eff3ced4ff8 (patch) | |
tree | 20978a077d8cfd6567305362f3f7f586b1e3581e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1f1dc442c57ec61c08d21d47e4c5b4f16446fe00 (diff) |
hv: vmbus: 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 these files have
such abused cases.
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: "K. Y. Srinivasan" <[email protected]>
CC: Haiyang Zhang <[email protected]>
CC: Wei Liu <[email protected]>
CC: Dexuan Cui <[email protected]>
CC: [email protected]
Signed-off-by: Li Zhijian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions