diff options
| author | Li Zhijian <[email protected]> | 2024-03-14 17:52:09 +0800 |
|---|---|---|
| committer | Alexander Gordeev <[email protected]> | 2024-04-09 17:29:56 +0200 |
| commit | aaebea959efb2cccd870990f1b6016ff324b0fb6 (patch) | |
| tree | 9c31f780c63547b3b6e16306f8cbea86bd948254 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | b3840c8bfc27c1e8dc3953d6a27960ae390d5d80 (diff) | |
s390/cio: convert sprintf()/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().
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: Vineeth Vijayan <[email protected]>
Cc: Peter Oberparleiter <[email protected]>
Signed-off-by: Li Zhijian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions