]> git.karo-electronics.de Git - linux-beck.git/commit
perf hists: Don't format the percentage on hist_entry__snprintf
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Oct 2011 16:37:34 +0000 (14:37 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Oct 2011 19:03:08 +0000 (17:03 -0200)
commitf1cf602c16e9a93fd16705621f3430ec7ffe2c44
tree3f31d1a6fdca87b11375245efcb79c139f0c4733
parentc172f7422c03463a7177e268ffe625c41c42c179
perf hists: Don't format the percentage on hist_entry__snprintf

We can't have color correctly set there because in libslang (and in a future
GUI) the colors must be set on a separate function call, so move that part to a
separate function and make the stdio fprintf function call it.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-jpgy42438ce9tgbqppm397lq@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c
tools/perf/util/hist.h
tools/perf/util/ui/browsers/hists.c