summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLi Zhijian <lizhijian@fujitsu.com>2024-04-29 16:01:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-04 19:57:22 +0300
commit212886f5d930082d31eae617bf4d4b6c89800328 (patch)
tree1874df7b3361e35cb2ed7e932b8558bc159abbfb /tools/perf/scripts/python/export-to-sqlite.py
parent8dc0b2d385d28d06dd17963f4f003738a3c67d3f (diff)
downloadlinux-212886f5d930082d31eae617bf4d4b6c89800328.tar.xz
intel_th: 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(). sprintf() will be converted as weel 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 Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240429130119.1518073-8-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions