[PATCH v2] trace-cmd report: Add spacing before raw data flags
Cao Ruichuang <[email protected]> Tue, 7 Apr 2026 00:53:33 +0800
| Newsgroups | org.kernel.vger.linux-trace-devel |
|---|---|
| Message-ID | <[email protected]> |
In raw report mode, the CPU field is followed immediately by the raw data flags. Without a separator, the flags get glued to the closing CPU bracket and the output becomes hard to parse visually. Add a leading space before the raw flag field so the raw report output keeps the same field separation that the non-raw path already has. Link: https://bugzilla.kernel.org/show_bug.cgi?id=221303 Signed-off-by: Cao Ruichuang <[email protected]> --- tracecmd/trace-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracecmd/trace-read.c b/tracecmd/trace-read.c index 355ee0f4..962ebd89 100644 --- a/tracecmd/trace-read.c +++ b/tracecmd/trace-read.c @@ -871,7 +871,7 @@ void trace_show_data(struct tracecmd_input *handle, struct tep_record *record) TEP_PRINT_CPU); if (raw_format) - trace_seq_printf(&s, "-0x%x", + trace_seq_printf(&s, " -0x%x", tep_data_flags(pevent, record)); else tep_print_event(pevent, &s, record, -- 2.39.5 (Apple Git-154)