From ec6a6a9601b2efe3890c1f23c7753ad9129ec868 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Thu, 3 Aug 2023 09:18:35 -0700 Subject: [PATCH] Avoid unnecessary empty lines when instruction tracing is on These empty lines don't add to the readability of the trace and in fact when trace redirection is enabled they result in lots of empty lines being printed to stderr which makes it impossible to read the OS boot messages. --- c_emulator/riscv_sim.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/c_emulator/riscv_sim.c b/c_emulator/riscv_sim.c index 84ee04d3f..93609b433 100644 --- a/c_emulator/riscv_sim.c +++ b/c_emulator/riscv_sim.c @@ -740,9 +740,7 @@ int compare_states(struct tv_spike_t *s) void flush_logs(void) { if (config_print_instr) { - fprintf(stderr, "\n"); fflush(stderr); - fprintf(trace_log, "\n"); fflush(trace_log); } }