[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220408132625.2451452-1-adrian.hunter@intel.com>
Date: Fri, 8 Apr 2022 16:26:25 +0300
From: Adrian Hunter <adrian.hunter@...el.com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Jiri Olsa <jolsa@...hat.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] perf tools: Fix perf's libperf_print callback
eprintf does not expect va_list as the 4th parameter.
Use veprintf because it does.
Signed-off-by: Adrian Hunter <adrian.hunter@...el.com>
---
tools/perf/perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/perf.c b/tools/perf/perf.c
index 2f6b67189b42..6aae7b6c376b 100644
--- a/tools/perf/perf.c
+++ b/tools/perf/perf.c
@@ -434,7 +434,7 @@ void pthread__unblock_sigwinch(void)
static int libperf_print(enum libperf_print_level level,
const char *fmt, va_list ap)
{
- return eprintf(level, verbose, fmt, ap);
+ return veprintf(level, verbose, fmt, ap);
}
int main(int argc, const char **argv)
--
2.25.1
Powered by blists - more mailing lists