From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> The "Use libraries to read file" test shows the output of the reading of the trace.dat file. That should only happen if the '-v' option is supplied, otherwise, it should be muted. Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- utest/tracecmd-utest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utest/tracecmd-utest.c b/utest/tracecmd-utest.c index e45b3537365c..2ec3f7118690 100644 --- a/utest/tracecmd-utest.c +++ b/utest/tracecmd-utest.c @@ -264,7 +264,8 @@ static int read_events(struct tracecmd_input *handle, struct tep_record *record, tep_print_event(tep, seq, record, "%s-%d %s %s\n", TEP_PRINT_COMM, TEP_PRINT_PID, TEP_PRINT_NAME, TEP_PRINT_INFO); - trace_seq_do_printf(seq); + if (show_output) + trace_seq_do_printf(seq); return 0; } -- 2.35.1