From: Clifford Wolf Date: Fri, 23 Dec 2016 01:06:46 +0000 (+0100) Subject: Simplified log_spacer() code X-Git-Tag: yosys-0.8~554 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33a22f8768ee05325f87258fe09c21c648553747;p=yosys.git Simplified log_spacer() code --- diff --git a/kernel/log.cc b/kernel/log.cc index b3033024f..cd16bb344 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -289,12 +289,8 @@ void log_cmd_error(const char *format, ...) void log_spacer() { - while (log_newline_count < 2) { - int old_log_newline_count = log_newline_count; - log("\n"); - if (old_log_newline_count >= log_newline_count) - break; - } + if (log_newline_count < 2) log("\n"); + if (log_newline_count < 2) log("\n"); } void log_push()