Message ID | 20221115205355.2580214-3-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 01926bce6c685ee1c06d7fb01a57ae6c8e8fc620 |
Headers | show |
Series | trace-cmd utest: Add test for max buffer (record -m) | expand |
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; }