From 33a22f8768ee05325f87258fe09c21c648553747 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 23 Dec 2016 02:06:46 +0100 Subject: [PATCH] Simplified log_spacer() code --- kernel/log.cc | 8 ++------ 1 file 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() -- 2.30.2