From 4afcef3d89a56a9fe5b340af215a587f5aedac18 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Fri, 8 Jun 2018 16:03:41 +0200 Subject: tools: Add newlines to printf statements in oping There were some missing newlines in printf statements in oping. This adds them. Signed-off-by: Sander Vrijders Signed-off-by: Dimitri Staessens --- src/tools/oping/oping.c | 4 ++-- src/tools/oping/oping_server.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tools') diff --git a/src/tools/oping/oping.c b/src/tools/oping/oping.c index 8396e261..e36b3bd5 100644 --- a/src/tools/oping/oping.c +++ b/src/tools/oping/oping.c @@ -145,10 +145,10 @@ static int time_mul(const char * rem) else if (strcmp(rem, "d") == 0) return 60 * 60 * 24 * 1000; - printf("Unknown time unit: %s.", rem); + printf("Unknown time unit: %s.\n", rem); usage(); - exit(EXIT_SUCCESS); + exit(EXIT_FAILURE); } int main(int argc, diff --git a/src/tools/oping/oping_server.c b/src/tools/oping/oping_server.c index 10926763..152aa512 100644 --- a/src/tools/oping/oping_server.c +++ b/src/tools/oping/oping_server.c @@ -96,7 +96,7 @@ void * server_thread(void *o) continue; if (ntohl(msg->type) != ECHO_REQUEST) { - printf("Invalid message on fd %d.", fd); + printf("Invalid message on fd %d.\n", fd); continue; } -- cgit v1.2.3