From 9f4cad61fe4713a46f9586e23c5f60dec79aece6 Mon Sep 17 00:00:00 2001 From: Alasdair Date: Fri, 27 Oct 2023 22:37:58 +0100 Subject: csim: Fix issue with trace_log FILE * in printf Fixes a warning introduced by commit 5725f3f --- c_emulator/riscv_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_emulator/riscv_sim.c b/c_emulator/riscv_sim.c index 9194518..13d1653 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); } -- cgit v1.1