diff options
| author | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-06-28 10:20:11 +0200 |
|---|---|---|
| committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-07 10:53:45 +0200 |
| commit | 48360246162b50e84a6e63ed572fdda5e038518b (patch) | |
| tree | f5ed143d1b0ca4808ab45874c80148cf131f4f40 /scripts/stackusage | |
| parent | mtd: parsers: trx: add of_match_table with the new DT binding (diff) | |
| download | linux-48360246162b50e84a6e63ed572fdda5e038518b.tar.gz linux-48360246162b50e84a6e63ed572fdda5e038518b.zip | |
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 <geert+renesas@glider.be>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
