From: Adrian Hunter Date: Fri, 8 Apr 2022 13:26:25 +0000 (+0300) Subject: perf tools: Fix perf's libperf_print callback X-Git-Tag: v5.15.73~5117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58aece34fb7f6ff1d2b02bfb5fd15e77883058f7;p=platform%2Fkernel%2Flinux-rpi.git perf tools: Fix perf's libperf_print callback [ Upstream commit aeee9dc53ce405d2161f9915f553114e94e5b677 ] eprintf() does not expect va_list as the type of the 4th parameter. Use veprintf() because it does. Signed-off-by: Adrian Hunter Fixes: 428dab813a56ce94 ("libperf: Merge libperf_set_print() into libperf_init()") Cc: Jiri Olsa Link: https://lore.kernel.org/r/20220408132625.2451452-1-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 2f6b671..6aae7b6 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)