perf tools: Remove cast of non-variadic function to variadic
authorMichael Hudson-Doyle <[email protected]>
Thu, 31 Oct 2013 23:47:45 +0000 (16:47 -0700)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 1 Nov 2013 13:40:51 +0000 (10:40 -0300)
commit53805eca3d89b095062c11a6798689bb0af09216
treed91df4fa0ec2f36f08d2bfd68ed9abeaeb9020f9
parente8a923cc1fff6e627f906655ad52ee694ef2f6d7
perf tools: Remove cast of non-variadic function to variadic

The 4fb71074a570 (perf ui/hist: Consolidate hpp helpers) cset introduced
a cast of percent_color_snprintf to a function pointer type with
varargs.  Change percent_color_snprintf to be variadic and remove the
cast.

The symptom of this was all percentages being reported as 0.00% in perf
report --stdio output on the armhf arch.

Signed-off-by: Michael Hudson-Doyle <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Acked-by: Will Deacon <[email protected]>
Cc: Jean Pihet <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/ui/hist.c
tools/perf/util/color.c
tools/perf/util/color.h