From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755758AbbHGHRK (ORCPT ); Fri, 7 Aug 2015 03:17:10 -0400 Received: from terminus.zytor.com ([198.137.202.10]:39491 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754778AbbHGHRI (ORCPT ); Fri, 7 Aug 2015 03:17:08 -0400 Date: Fri, 7 Aug 2015 00:16:33 -0700 From: tip-bot for Wang Nan Message-ID: Cc: tglx@linutronix.de, hekuang@huawei.com, brendan.d.gregg@gmail.com, dsahern@gmail.com, lizefan@huawei.com, xiakaixu@huawei.com, acme@redhat.com, hpa@zytor.com, mingo@kernel.org, ast@plumgrid.com, wangnan0@huawei.com, daniel@iogearbox.net, masami.hiramatsu.pt@hitachi.com, namhyung@kernel.org, a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org, jolsa@kernel.org Reply-To: tglx@linutronix.de, hekuang@huawei.com, brendan.d.gregg@gmail.com, dsahern@gmail.com, xiakaixu@huawei.com, lizefan@huawei.com, acme@redhat.com, wangnan0@huawei.com, daniel@iogearbox.net, masami.hiramatsu.pt@hitachi.com, namhyung@kernel.org, a.p.zijlstra@chello.nl, hpa@zytor.com, mingo@kernel.org, ast@plumgrid.com, linux-kernel@vger.kernel.org, jolsa@kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Introduce veprintf Git-Commit-ID: 0af0885ef69c182d1fa6bb201cd0570e9aa384eb X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0af0885ef69c182d1fa6bb201cd0570e9aa384eb Gitweb: http://git.kernel.org/tip/0af0885ef69c182d1fa6bb201cd0570e9aa384eb Author: Wang Nan AuthorDate: Fri, 31 Jul 2015 10:35:33 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 6 Aug 2015 15:30:38 -0300 perf tools: Introduce veprintf va_args alternative to eprintf(). Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkmann Cc: David Ahern Cc: He Kuang Cc: Jiri Olsa Cc: Kaixu Xia Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Zefan Li 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 --- tools/perf/util/debug.c | 5 +++++ tools/perf/util/debug.h | 1 + 2 files changed, 6 insertions(+) diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c index 2da5581..86d9c73 100644 --- a/tools/perf/util/debug.c +++ b/tools/perf/util/debug.c @@ -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; diff --git a/tools/perf/util/debug.h b/tools/perf/util/debug.h index caac2fd..8b9a088 100644 --- a/tools/perf/util/debug.h +++ b/tools/perf/util/debug.h @@ -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);