diff options
author | John Garry <john.g.garry@oracle.com> | 2024-03-27 12:40:20 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-01 20:53:37 +0300 |
commit | d3a3a086ad57b8c05340c0a4ac97b26ea55a1119 (patch) | |
tree | 7d1143b1b24b05296e0acef67ca537caa78951be /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a46c27026da10a126dd870f7b65380010bd20db5 (diff) | |
download | linux-d3a3a086ad57b8c05340c0a4ac97b26ea55a1119.tar.xz |
blk-throttle: Only use seq_printf() in tg_prfill_limit()
Currently tg_prfill_limit() uses a combination of snprintf() and strcpy()
to generate the values parts of the limits string, before passing them as
arguments to seq_printf().
Convert to use only a sequence of seq_printf() calls per argument, which is
simpler.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240327094020.3505514-1-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions