]> git.baikalelectronics.ru Git - uboot.git/commitdiff
tools: kwboot: Print newline on error when progress was not completed
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 21:06:47 +0000 (23:06 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
When progress was not completed, current terminal position is in progress
bar. So print newline before printing error message to make error message
more readable.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c

index eb4b3fe2305b600608fb3828b4e3c1120fdcf88c..0e533e369838a5db8c17b7ee54f4d48ada426235 100644 (file)
@@ -459,6 +459,7 @@ kwboot_xmodem(int tty, const void *_data, size_t size)
        rc = kwboot_tty_send_char(tty, EOT);
 
 out:
+       kwboot_printv("\n");
        return rc;
 
 can: