Missing newline in logger call; Missing space in alert command format

This commit is contained in:
Denny Page
2015-12-01 08:52:57 -08:00
parent c0adb5b75c
commit b8fa596f2a
+2 -2
View File
@@ -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);
}
}