perf tools: Use asprintf() for simple string formatting/allocation
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 25 Feb 2016 13:14:50 +0000 (10:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 25 Feb 2016 13:14:50 +0000 (10:14 -0300)
commit5104ffb229c357d9672344126040721e5dc4cc7b
tree69966fba15c2ace4c88352f83cdb4dfdbf86772d
parent06466212a69c0511c5dcff7363c207ffc8913731
perf tools: Use asprintf() for simple string formatting/allocation

No need to use strbuf there, its just a simple alloc+formatting, which
asprintf does just fine.

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-6q6cxfhk8c8ypg3tfpo0i2iy@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/perf.c