From: Pali Rohár <p...@kernel.org>

Print trailing newline as the last printed byte can be something
different.

Signed-off-by: Pali Rohár <p...@kernel.org>
Reviewed-by: Marek Behún <marek.be...@nic.cz>
---
 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;
 }
-- 
2.31.1

Reply via email to