summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-07-23 12:14:19 +0300
committerStefan Roese <sr@denx.de>2021-07-31 10:49:31 +0300
commit49a0a3b8b6feb36e95827d41249d3728b67ecced (patch)
treeaae88157834741c6cc613e214aa7b2f629ebcde0 /tools
parentec0fe5b84e0bdb94bb381a2b50092b24497c2091 (diff)
downloadu-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.c1
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;
}