Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Introduce veprintf

va_args alternative to eprintf().

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: David Ahern <dsahern@gmail.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kaixu Xia <xiakaixu@huawei.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/n/1436445342-1402-19-git-send-email-wangnan0@huawei.com
[ split from another patch ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Wang Nan and committed by
Arnaldo Carvalho de Melo
0af0885e 04a22fae

+6
+5
tools/perf/util/debug.c
··· 36 36 return ret; 37 37 } 38 38 39 + int veprintf(int level, int var, const char *fmt, va_list args) 40 + { 41 + return _eprintf(level, var, fmt, args); 42 + } 43 + 39 44 int eprintf(int level, int var, const char *fmt, ...) 40 45 { 41 46 va_list args;
+1
tools/perf/util/debug.h
··· 50 50 51 51 int eprintf(int level, int var, const char *fmt, ...) __attribute__((format(printf, 3, 4))); 52 52 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) __attribute__((format(printf, 4, 5))); 53 + int veprintf(int level, int var, const char *fmt, va_list args); 53 54 54 55 int perf_debug_option(const char *str); 55 56