OSDN Git Service

perf stat: Use only color_fprintf call in print_metric_only
authorJiri Olsa <jolsa@kernel.org>
Wed, 6 Jun 2018 22:15:07 +0000 (00:15 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 7 Jun 2018 18:58:13 +0000 (15:58 -0300)
commitb37d33edbf41b532ddd156707c037c6f4784e40b
tree24c80cc9a2f9ed7e838a81bfb203e7b22f8d6705
parent9660e08ee8cbc94ac835f2c30576c6e51fbece8f
perf stat: Use only color_fprintf call in print_metric_only

We can call color_fprintf also for non color case, it's handled
properly. This change simplifies following patch.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20180606221513.11302-5-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c