From: Guus Sliepen Date: Mon, 26 Mar 2012 13:45:20 +0000 (+0100) Subject: Remove newline from log message. X-Git-Tag: import-tinc-1.1~384^2~1 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=cc6aee784659bfbd21eb8d414e00a8f1a801cac4;p=meshlink Remove newline from log message. --- diff --git a/src/logger.c b/src/logger.c index f886ba4c..6765cc5a 100644 --- a/src/logger.c +++ b/src/logger.c @@ -75,7 +75,7 @@ void reopenlogger() { fflush(logfile); FILE *newfile = fopen(logfilename, "a"); if(!newfile) { - logger(LOG_ERR, "Unable to reopen log file %s: %s\n", logfilename, strerror(errno)); + logger(LOG_ERR, "Unable to reopen log file %s: %s", logfilename, strerror(errno)); return; } fclose(logfile);