Skip to content

Commit

Permalink
i#6495 syscall templates: Fix format specifier in log (#6503)
Browse files Browse the repository at this point in the history
Fixes print format specifier in a raw2trace verbose level 2 log. This
causes a segmentation fault with -verbose 2.

Issue: #6495
  • Loading branch information
abhinav92003 authored Dec 12, 2023
1 parent 278fc51 commit c40095e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/drcachesim/tracer/raw2trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ raw2trace_t::write_syscall_template(raw2trace_thread_data_t *tdata, byte *&buf_i
return false;
}
buf_in = reinterpret_cast<byte *>(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;
}
Expand Down

0 comments on commit c40095e

Please sign in to comment.