
There is no separation between output from the code from binary header (U-Boot SPL in most cases) and subsequent kwboot output.
Print '\n' to make distinguishing these two easier.
Signed-off-by: Marek Behún marek.behun@nic.cz --- tools/kwboot.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/tools/kwboot.c b/tools/kwboot.c index 2829b74a2e..2e16db83fa 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -385,6 +385,7 @@ static int kwboot_xm_sendblock(int fd, struct kwboot_block *block, int allow_non_xm, int *done_print) { + int non_xm_print = 0; int rc, retries; char c;
@@ -413,6 +414,7 @@ kwboot_xm_sendblock(int fd, struct kwboot_block *block, int allow_non_xm, if (!_is_xm_reply(c) && allow_non_xm) { putchar(c); fflush(stdout); + non_xm_print = 1; } } while (!_is_xm_reply(c));
@@ -420,6 +422,9 @@ kwboot_xm_sendblock(int fd, struct kwboot_block *block, int allow_non_xm, kwboot_progress(-1, '+'); } while (c == NAK && retries-- > 0);
+ if (non_xm_print) + kwboot_printv("\n"); + rc = -1;
switch (c) {