From b8fa596f2a893cd38a07a0385cdddb33610105c6 Mon Sep 17 00:00:00 2001 From: Denny Page Date: Tue, 1 Dec 2015 08:52:57 -0800 Subject: [PATCH] Missing newline in logger call; Missing space in alert command format --- dpinger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpinger.c b/dpinger.c index 5a9ddcc..4516d8d 100644 --- a/dpinger.c +++ b/dpinger.c @@ -75,7 +75,7 @@ static unsigned long loss_interval = 0; // Command to invoke for alerts -#define ALERT_CMD_OUTPUT_MAX sizeof("1 1000000000000 100\0") +#define ALERT_CMD_OUTPUT_MAX sizeof(" 1 1000000000000 100\0") static char * alert_cmd = NULL; static size_t alert_cmd_offset; @@ -315,7 +315,7 @@ send_thread( r = nanosleep(&sleeptime, NULL); if (r == -1) { - logger("nanosleep error in send thread: %d", errno); + logger("nanosleep error in send thread: %d\n", errno); } }