diff options
author | 2021-10-14 23:50:40 -0700 | |
---|---|---|
committer | 2021-10-19 16:59:44 +0200 | |
commit | 2d5b0755b754fcb39598df87b3a8656a569e9979 (patch) | |
tree | d228e132733c4f5f3c7a255e9dceb6147aefd06b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | platform: x86: ideapad-laptop: Use ACPI_COMPANION() directly (diff) | |
download | wireguard-linux-2d5b0755b754fcb39598df87b3a8656a569e9979.tar.xz wireguard-linux-2d5b0755b754fcb39598df87b3a8656a569e9979.zip |
platform/x86: panasonic-laptop: Replace snprintf in show functions with sysfs_emit
show() must not use snprintf() when formatting the value to be
returned to user space.
Fix the coccicheck warnings:
WARNING: use scnprintf or sprintf.
Use sysfs_emit instead of scnprintf or sprintf makes more sense.
Signed-off-by: Qing Wang <wangqing@vivo.com>
Link: https://lore.kernel.org/r/1634280641-4862-1-git-send-email-wangqing@vivo.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions