perf pmu: Make pmu_formats_string to check return value of strbuf
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 10 May 2016 05:47:44 +0000 (14:47 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 May 2016 14:57:52 +0000 (11:57 -0300)
commit11db4e29bb50442ecef2173f325b7be4e7790025
tree696636577cb3733f7ecbdc4c9bdba4de47f05df5
parent642aadaa320bf9466fd12e3c0903977410bcb731
perf pmu: Make pmu_formats_string to check return value of strbuf

Make pmu_formats_string() to check return value of strbuf APIs so that
it can detect errors in it.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160510054744.6158.37810.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pmu.c