Skip to content

Commit

Permalink
csim: Fix issue with trace_log FILE * in printf
Browse files Browse the repository at this point in the history
Fixes a warning introduced by commit 5725f3f
  • Loading branch information
Alasdair authored and jrtc27 committed Nov 13, 2023
1 parent 46750ee commit 9f4cad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_emulator/riscv_sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ void init_logs()
if (trace_log_path == NULL) {
trace_log = stdout;
} else if ((trace_log = fopen(trace_log_path, "w+")) < 0) {
fprintf(stderr, "Cannot create trace log '%s': %s\n", trace_log,
fprintf(stderr, "Cannot create trace log '%s': %s\n", trace_log_path,
strerror(errno));
exit(1);
}
Expand Down

0 comments on commit 9f4cad6

Please sign in to comment.