From bc86d2eda868588a1028db5ed2ddff6b46ce5703 Mon Sep 17 00:00:00 2001 From: Abhinav Anil Sharma Date: Wed, 3 Apr 2024 15:48:38 -0400 Subject: [PATCH] Move comment to relevant loc --- clients/drcachesim/tracer/raw2trace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/drcachesim/tracer/raw2trace.cpp b/clients/drcachesim/tracer/raw2trace.cpp index da713db63c8..9386f080465 100644 --- a/clients/drcachesim/tracer/raw2trace.cpp +++ b/clients/drcachesim/tracer/raw2trace.cpp @@ -630,8 +630,8 @@ raw2trace_t::write_syscall_template(raw2trace_thread_data_t *tdata, byte *&buf_i { static_cast(syscall_num) } }; *buf = start_entry; ++buf; + // Now write any accumulated entries from before, plus the start entry. { - // Now write any accumulated entries from before, plus the start entry. size_t size = buf - buf_base; if ((uint)size >= WRITE_BUFFER_SIZE) { tdata->error = "Too many entries";