summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-06-22 18:12:24 +0300
committerLinus Walleij <linus.walleij@linaro.org>2015-07-16 10:20:03 +0200
commit8749f8ed5cc07f4f130f2e5b2c41da78388146ec (patch)
tree4e3b5ab995587f70f03d34bb96843833996ee36a /tools/perf/scripts/python
parent95b612cc6c7f95f4e08f1b3dbc6588fda49b1b12 (diff)
pinctrl: samsung: don't truncate the last char
We were allocating enough space because sizeof("-grp") and sizeof("-mux") are both equal to 5 but in the snprintf() we only allowed for 4 characters so the last 'p' and 'x' characters were truncated. The allocate and sprintf can be done in one step with the kasprintf(). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions