diff options
author | Pali Rohár <pali@kernel.org> | 2021-07-23 12:14:19 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-07-31 10:49:31 +0300 |
commit | 49a0a3b8b6feb36e95827d41249d3728b67ecced (patch) | |
tree | aae88157834741c6cc613e214aa7b2f629ebcde0 /tools | |
parent | ec0fe5b84e0bdb94bb381a2b50092b24497c2091 (diff) | |
download | u-boot-49a0a3b8b6feb36e95827d41249d3728b67ecced.tar.xz |
tools: kwboot: Print trailing newline after terminal is terminated
Print trailing newline as the last printed byte can be something
different.
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>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kwboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c index 7fa742d84c..941f4228f9 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -560,6 +560,7 @@ kwboot_terminal(int tty) if (in >= 0) tcsetattr(in, TCSANOW, &otio); + printf("\n"); out: return rc; } |