From a7c7a46be87c0f81a3ae5b887a60bbba0a329ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 8 Jun 2016 17:58:30 +0200 Subject: [PATCH] posix console: output newline before process_line Before the output looked like this: pxh> logger statusINFO [logger] Running INFO [logger] Wrote 0.13 MiB (avg 0.72 KiB/s) INFO [logger] Since last status: dropouts: 0 (max len: 0.000 s), max used buffer: 7176 / 12288 B --- src/platforms/posix/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/posix/main.cpp b/src/platforms/posix/main.cpp index 7b1c4dec7f..ca0a471703 100644 --- a/src/platforms/posix/main.cpp +++ b/src/platforms/posix/main.cpp @@ -128,7 +128,7 @@ static void run_cmd(const vector &appargs, bool exit_on_fail) // Do nothing } else { - cout << endl << "Invalid command: " << command << "\ntype 'help' for a list of commands" << endl; + cout << "Invalid command: " << command << "\ntype 'help' for a list of commands" << endl; } } @@ -335,8 +335,8 @@ int main(int argc, char **argv) } } - process_line(mystr, false); cout << endl; + process_line(mystr, false); mystr = ""; buf_ptr_read = buf_ptr_write;