diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-12-23 02:06:46 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-12-23 02:06:46 +0100 |
commit | 33a22f8768ee05325f87258fe09c21c648553747 (patch) | |
tree | c4034cefee2e0609b4a0b79256fd309cee47fcc6 /kernel | |
parent | a0dff87a5783daa5e47b8089b5e55443dfe11583 (diff) | |
download | yosys-33a22f8768ee05325f87258fe09c21c648553747.tar.gz yosys-33a22f8768ee05325f87258fe09c21c648553747.tar.bz2 yosys-33a22f8768ee05325f87258fe09c21c648553747.zip |
Simplified log_spacer() code
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/log.cc | 8 |
1 files changed, 2 insertions, 6 deletions
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() |