perf tools: Generalize percent_color_snprintf()
authorRamkumar Ramachandra <artagnon@gmail.com>
Mon, 30 Dec 2013 07:34:18 +0000 (13:04 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 13 Jan 2014 13:46:39 +0000 (10:46 -0300)
commitf77c6e9c8f9c444cd44423df0c2708e86a06a696
treef159da4879b94073e30a40ad55844f531c862867
parent741a0c59032faeddac80a6237f3d7846231a3740
perf tools: Generalize percent_color_snprintf()

Make percent_color_snprintf() handle negative values correctly.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1388388861-7931-2-git-send-email-artagnon@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/color.c