From 4cda01208fe94d4869ac26e86e1ebedc253b05d7 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 10 May 2016 10:55:29 +0200 Subject: tools: Fix log message in irm tool A wrong log message was being printed if the bootstrap command was called with a wrong parameter. --- src/tools/irm/irm_bootstrap_ipcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/irm/irm_bootstrap_ipcp.c b/src/tools/irm/irm_bootstrap_ipcp.c index b90e934f..64498384 100644 --- a/src/tools/irm/irm_bootstrap_ipcp.c +++ b/src/tools/irm/irm_bootstrap_ipcp.c @@ -132,7 +132,7 @@ int do_bootstrap_ipcp(int argc, char ** argv) max_pdu_size = atoi(*(argv + 1)); } else { printf("\"%s\" is unknown, try \"irm " - "destroy_ipcp\".\n", *argv); + "bootstrap_ipcp\".\n", *argv); return -1; } -- cgit v1.2.3 From 14f3db5010610d728989395e1b7bcad960077a52 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 10 May 2016 10:58:03 +0200 Subject: tools: Fix log messages in echo app This fixes bad indentation and log messages without a newline in the echo application. --- src/tools/echo/echo_client.c | 12 ++++++------ src/tools/echo/echo_server.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/tools') diff --git a/src/tools/echo/echo_client.c b/src/tools/echo/echo_client.c index 9cf56cee..5c613817 100644 --- a/src/tools/echo/echo_client.c +++ b/src/tools/echo/echo_client.c @@ -33,28 +33,28 @@ int client_main() char * message = "Client says hi!"; ssize_t count = 0; - if(ap_init(CLIENT_AP_NAME)) { - printf("Failed to init AP."); + if (ap_init(CLIENT_AP_NAME)) { + printf("Failed to init AP.\n"); return -1; } fd = flow_alloc(SERVER_AP_NAME, NULL, NULL); if (fd < 0) { - printf("Failed to allocate flow\n"); + printf("Failed to allocate flow.\n"); ap_fini(); return -1; } result = flow_alloc_res(fd); if (result < 0) { - printf("Flow allocation refused\n"); + printf("Flow allocation refused.\n"); flow_dealloc(fd); ap_fini(); return -1; } if (flow_write(fd, message, strlen(message) + 1) == -1) { - printf("Failed to write SDU\n"); + printf("Failed to write SDU.\n"); flow_dealloc(fd); ap_fini(); return -1; @@ -62,7 +62,7 @@ int client_main() count = flow_read(fd, buf, BUF_SIZE); if (count < 0) { - printf("Failed to read SDU\n"); + printf("Failed to read SDU.\n"); flow_dealloc(fd); ap_fini(); return -1; diff --git a/src/tools/echo/echo_server.c b/src/tools/echo/echo_server.c index d9af1c1f..b72da319 100644 --- a/src/tools/echo/echo_server.c +++ b/src/tools/echo/echo_server.c @@ -60,8 +60,8 @@ int server_main() return -1; } - if(ap_init(SERVER_AP_NAME)) { - printf("Failed to init AP."); + if (ap_init(SERVER_AP_NAME)) { + printf("Failed to init AP.\n"); return -1; } -- cgit v1.2.3