summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-08-26 20:07:15 +0300
committerThierry Reding <thierry.reding@gmail.com>2022-09-28 18:52:02 +0300
commit4709f9ea338d34276d747c88323f964e148c0c09 (patch)
treea43862715be177f0dc96cf951c4ad9248a1b7db0 /tools/perf/scripts/python/export-to-postgresql.py
parentb4319802867515ca6e492bff54879bc22a71a62c (diff)
downloadlinux-4709f9ea338d34276d747c88323f964e148c0c09.tar.xz
pwm: sysfs: Replace sprintf() with sysfs_emit()
While the uses in this code are unproblematic, it's generally safer for sysfs outputs to use the new sysfs_emit() helper instead of raw calls to sprintf() and friends. This also has the benefit of annotating the uses, which makes them easier to audit and potentially use them to generate sysfs documentation from them. This patch replaces existing sprintf() calls straightforwardly with the new helper. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions