From c40095eb197b0c7f5e708865799b422ba97a9f0b Mon Sep 17 00:00:00 2001 From: Abhinav Anil Sharma Date: Tue, 12 Dec 2023 18:33:10 -0500 Subject: [PATCH] i#6495 syscall templates: Fix format specifier in log (#6503) Fixes print format specifier in a raw2trace verbose level 2 log. This causes a segmentation fault with -verbose 2. Issue: #6495 --- 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 9498f58c6c0..52da3f4976b 100644 --- a/clients/drcachesim/tracer/raw2trace.cpp +++ b/clients/drcachesim/tracer/raw2trace.cpp @@ -686,7 +686,7 @@ raw2trace_t::write_syscall_template(raw2trace_thread_data_t *tdata, byte *&buf_i return false; } buf_in = reinterpret_cast(buf_base); - log(2, "Inserted %s instrs from system call trace template for sysnum %d\n", + log(2, "Inserted %d instrs from system call trace template for sysnum %d\n", inserted_instr_count, syscall_num); return true; }