perf help: Use asprintf instead of adhoc equivalents
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Mar 2016 18:44:09 +0000 (15:44 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Mar 2016 19:36:07 +0000 (16:36 -0300)
commita610f5cbb2a7e26b7f2df2f5df255e34007d6bfd
treed69e2f9289c94abc500de45d3c178b4fb0f6d9ee
parentcf47a8aede9febee21cbd21d40a9c47244773a6c
perf help: Use asprintf instead of adhoc equivalents

That doesn't chekcs malloc return and that, when using strbuf, if it
can't grow, just explodes away via die().

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-vr8qsjbwub7e892hpa9msz95@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-help.c