perf tools: Fix perf's libperf_print callback
Adrian Hunter
reviewerPATCH 1/1 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 <[email protected]>
--- tools/perf/perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/perf.c +1 -1
@@ -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)
Signature · 1 line
2.25.1
Em Fri, Apr 08, 2022 at 04:26:25PM +0300, Adrian Hunter escreveu:
Quoted 2 lines
eprintf does not expect
va_listas the 4th parameter. Use veprintf because it does.
You forgot to add this:
Fixes 428dab813a56ce94 ("libperf: Merge libperf_set_print() into libperf_init()")
Please consider doing it next time.
Thanks, applied.
- Arnaldo
Quoted 20 lines
Signed-off-by Adrian Hunter <[email protected]>--- tools/perf/perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/perf/perf.c +1
-1@@ -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)Signature · 1 line
2.25.1
Signature · 1 line
- Arnaldo