diff --git a/c_emulator/riscv_sim.c b/c_emulator/riscv_sim.c index 919451857..13d16534a 100644 --- a/c_emulator/riscv_sim.c +++ b/c_emulator/riscv_sim.c @@ -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); }