diff options
author | 2020-08-24 23:39:33 +0100 | |
---|---|---|
committer | 2020-08-28 10:26:47 +0200 | |
commit | 9cfbf7a6416b5fa2b88ac337d092be82778a0469 (patch) | |
tree | 774711ccf1a5f13351a5b385dab1551b97162842 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | serial: fsl_lpuart: Fix typo in "transfer" (diff) | |
download | wireguard-linux-9cfbf7a6416b5fa2b88ac337d092be82778a0469.tar.xz wireguard-linux-9cfbf7a6416b5fa2b88ac337d092be82778a0469.zip |
serial: core: don't use snprintf() for formatting sysfs attrs
As per the documentation (Documentation/filesystems/sysfs.rst),
snprintf() should not be used for formatting values returned by sysfs.
For all of the instances in serial_core.c, we know that the string will
be <PAGE_SIZE in length, so just use sprintf().
Issue identified by Coccinelle.
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Link: https://lore.kernel.org/r/20200824223932.27709-1-alex.dewar90@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions