perf tools: Do not include escape sequences in color_vfprintf return
authorAndi Kleen <ak@linux.intel.com>
Tue, 4 Aug 2015 00:50:02 +0000 (17:50 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 5 Aug 2015 19:46:06 +0000 (16:46 -0300)
commitb7a001d2067830a98e65d1bbbf99a6d435d70616
tree14d939073a15e0a564b0ce7bd92d0fdda28e05e2
parent8011de7ab3b10c5352f3f0708f517de2722b0957
perf tools: Do not include escape sequences in color_vfprintf return

color_vprintf was including the length of the invisible escape sequences
in its return argument. Don't include them to make the return value
usable for indentation calculations.

v2: Add comment, rebase

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1438649408-20807-3-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/color.c
This page took 0.025674 seconds and 5 git commands to generate.