perf trace: Prepare the strarray scnprintf method for reuse
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 Oct 2013 20:17:43 +0000 (17:17 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Oct 2013 15:18:00 +0000 (12:18 -0300)
commit975b7c2f40d431da4fdb46dd8b9d90c129eecc12
tree10fa04d8af2cdb28a52aeeed460e92cfa7e9aa1a
parent03e3adc9f4d8b57dc83475c8c4c6e462a78ff709
perf trace: Prepare the strarray scnprintf method for reuse

Right now when an index passed to that method has no string associated
it'll print the index as a decimal number, prepare it so that we can use
it to print it in hex as well, for ioctls, for instance.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.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-nsvy06sqj64qvnkmzvwxsx2v@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c