]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:59:42 +0000 (11:59 +0200)
commit56ec06c4b47ccd3d8349952763434b88ef65220e
tree55773e24581ab8b1d36cbd6a2bb0fdc309f6b603
parente940366fe2e03603e203e3f07e1871a062dcb596
perf tools: Fix perf's libperf_print callback

BugLink: https://bugs.launchpad.net/bugs/1969107
[ 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>
(cherry picked from commit 58aece34fb7f6ff1d2b02bfb5fd15e77883058f7)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/perf/perf.c