]> git.karo-electronics.de Git - linux-beck.git/commitdiff
perf tools: Introduce veprintf
authorWang Nan <wangnan0@huawei.com>
Fri, 31 Jul 2015 13:35:33 +0000 (10:35 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 6 Aug 2015 18:30:38 +0000 (15:30 -0300)
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>
tools/perf/util/debug.c
tools/perf/util/debug.h

index 2da5581ec74d35945dcdf3cb45369284a876976c..86d9c73025983d0132a4dddc8607161d713bfbf2 100644 (file)
@@ -36,6 +36,11 @@ static int _eprintf(int level, int var, const char *fmt, va_list args)
        return ret;
 }
 
+int veprintf(int level, int var, const char *fmt, va_list args)
+{
+       return _eprintf(level, var, fmt, args);
+}
+
 int eprintf(int level, int var, const char *fmt, ...)
 {
        va_list args;
index caac2fdc6105f7591a225f12e65b6e1ece48d342..8b9a088c32ab4e330ece47ae91397bdd87bdd0ee 100644 (file)
@@ -50,6 +50,7 @@ void pr_stat(const char *fmt, ...);
 
 int eprintf(int level, int var, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) __attribute__((format(printf, 4, 5)));
+int veprintf(int level, int var, const char *fmt, va_list args);
 
 int perf_debug_option(const char *str);