From cdf26c9cd0ff500770a4eed33e9789d045cf0443 Mon Sep 17 00:00:00 2001 From: Joshua DeWeese Date: Wed, 22 Feb 2023 09:49:10 -0500 Subject: [PATCH] examples/telnet_server: add missing newline The telnet example prints a line to the console, but it is not ended with a newline. When using pyterm, the last line is then never shown as it reads the console line by line and is waiting for the end of the line. This patch swaps use of `printf` for `puts` for the last line printed. This means the missing newline character gets added. This is also done to be consistent with the rest of the file, where puts is used whenever possible instead of printf. --- examples/telnet_server/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/telnet_server/main.c b/examples/telnet_server/main.c index e0e9235a3a..aed0a26fb3 100644 --- a/examples/telnet_server/main.c +++ b/examples/telnet_server/main.c @@ -79,7 +79,7 @@ int main(void) /* start shell */ printf("All up, awaiting connection on port %u\n", CONFIG_TELNET_PORT); - printf("Local shell disabled"); + puts("Local shell disabled"); char line_buf[SHELL_DEFAULT_BUFSIZE]; shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);