[PATCH u-boot-marvell v3 10/39] tools: kwboot: Print newline on error when progress was not completed

Stefan Roese sr at denx.de
Fri Oct 1 08:16:35 CEST 2021


On 24.09.21 23:06, Marek Behún wrote:
> From: Pali Rohár <pali at kernel.org>
> 
> 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 at kernel.org>
> Reviewed-by: Marek Behún <marek.behun at nic.cz>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   tools/kwboot.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tools/kwboot.c b/tools/kwboot.c
> index eb4b3fe230..0e533e3698 100644
> --- a/tools/kwboot.c
> +++ b/tools/kwboot.c
> @@ -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:
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list