[PATCH u-boot-mvebu 13/31] tools: kwboot: Print trailing newline after terminal is terminated

Stefan Roese sr at denx.de
Thu Jul 15 10:39:08 CEST 2021


On 08.07.21 19:30, Marek Behún wrote:
> From: Pali Rohár <pali at kernel.org>
> 
> Print trailing newline as the last printed byte can be something
> different.
> 
> 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 7e8bf21d37..6e66ad4ecf 100644
> --- a/tools/kwboot.c
> +++ b/tools/kwboot.c
> @@ -566,6 +566,7 @@ kwboot_terminal(int tty)
>   
>   	if (in >= 0)
>   		tcsetattr(in, TCSANOW, &otio);
> +	printf("\n");
>   out:
>   	return rc;
>   }
> 


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