diff --git a/daemon/cli.c b/daemon/cli.c index 010656a69..ca5ad72e9 100644 --- a/daemon/cli.c +++ b/daemon/cli.c @@ -309,7 +309,7 @@ next: sprintf(replybuffer, "Could currently not accept CLI commands. Reason:%s\n", strerror(errno)); goto cleanup; } - ilog(LOG_INFO, "Accept error:%s\n", strerror(errno)); + ilog(LOG_INFO, "Accept error:%s", strerror(errno)); goto next; } @@ -319,15 +319,15 @@ next: readbytes = read(nfd, inbuf+inlen, MAXINPUT); if (readbytes == -1) { if (errno == EAGAIN || errno == EWOULDBLOCK) { - ilog(LOG_INFO, "Could currently not read CLI commands. Reason:%s\n", strerror(errno)); + ilog(LOG_INFO, "Could currently not read CLI commands. Reason:%s", strerror(errno)); goto cleanup; } - ilog(LOG_INFO, "Could currently not read CLI commands. Reason:%s\n", strerror(errno)); + ilog(LOG_INFO, "Could currently not read CLI commands. Reason:%s", strerror(errno)); } inlen += readbytes; } while (readbytes > 0); - ilog(LOG_INFO, "Got CLI command:%s\n",inbuf); + ilog(LOG_INFO, "Got CLI command:%s",inbuf); static const char* LIST = "list"; static const char* TERMINATE = "terminate";