Skip to content

Commit

Permalink
Avoid unnecessary empty lines when instruction tracing is on
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arichardson committed Aug 3, 2023
1 parent ffa591d commit 4f3fd51
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions c_emulator/riscv_sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 4f3fd51

Please sign in to comment.