]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf tools: Fix perf's libperf_print callback
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 8 Apr 2022 13:26:25 +0000 (16:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:03:18 +0000 (20:03 +0200)
commit699d760b203f41c78ab3aab32c5007f329805147
tree87304debc829c350789228ea50966579b99632de
parent49309a5d0732cf905968b60bd43cbe11279c95ce
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 <adrian.hunter@intel.com>
Fixes: 428dab813a56ce94 ("libperf: Merge libperf_set_print() into libperf_init()")
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220408132625.2451452-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/perf.c