diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2018-06-08 16:03:41 +0200 |
---|---|---|
committer | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-06-08 16:45:47 +0200 |
commit | 4afcef3d89a56a9fe5b340af215a587f5aedac18 (patch) | |
tree | dced6a95bc106085006468839f7cf99ac1b7223b | |
parent | 5c049ef4fb90faa341e18f2d752c719fb49ff648 (diff) | |
download | ouroboros-4afcef3d89a56a9fe5b340af215a587f5aedac18.tar.gz ouroboros-4afcef3d89a56a9fe5b340af215a587f5aedac18.zip |
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 <sander.vrijders@ugent.be>
Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
-rw-r--r-- | src/tools/oping/oping.c | 4 | ||||
-rw-r--r-- | src/tools/oping/oping_server.c | 2 |
2 files changed, 3 insertions, 3 deletions
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; } |