From fedaaddf033aff32a322109e6948b5070c5b2a7b Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 9 Feb 2015 12:49:14 -0500 Subject: [PATCH] remove superfluous \n from log messages --- daemon/cli.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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";