diff options
author | Geert Uytterhoeven <[email protected]> | 2018-06-28 10:20:11 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2018-07-07 10:53:45 +0200 |
commit | 48360246162b50e84a6e63ed572fdda5e038518b (patch) | |
tree | f5ed143d1b0ca4808ab45874c80148cf131f4f40 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 98534a58c8a40cdc9e3bcb04d74719fbcedfeb52 (diff) |
mtd: Use kasprintf() instead of fixed buffer formatting
Using "%4.4X" in the calculation of the buffer size is misleading, as
the format string literal has no relation to the actual size needed.
Hence this is fragile w.r.t. future modification.
As this is not a hot path, fix this by replacing the formatting in a
fixed buffer by kasprintf().
Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions