commit | 48360246162b50e84a6e63ed572fdda5e038518b | [log] [tgz] |
---|---|---|
author | Geert Uytterhoeven <geert+renesas@glider.be> | Thu Jun 28 10:20:11 2018 +0200 |
committer | Boris Brezillon <boris.brezillon@bootlin.com> | Sat Jul 07 10:53:45 2018 +0200 |
tree | f5ed143d1b0ca4808ab45874c80148cf131f4f40 | |
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 <geert+renesas@glider.be> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>