summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdaemon/dexec.c2
-rw-r--r--libdaemon/dfork.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdaemon/dexec.c b/libdaemon/dexec.c
index 347dfa6..df9028f 100644
--- a/libdaemon/dexec.c
+++ b/libdaemon/dexec.c
@@ -101,7 +101,7 @@ int daemon_exec(const char *dir, int *ret, const char *prog, ...) {
execv(prog, args);
- daemon_log(LOG_ERR, "execv(%s) failed: %s\n", prog, strerror(errno));
+ daemon_log(LOG_ERR, "execv(%s) failed: %s", prog, strerror(errno));
_exit(EXIT_FAILURE);
}
diff --git a/libdaemon/dfork.c b/libdaemon/dfork.c
index 88e77e8..5edcc75 100644
--- a/libdaemon/dfork.c
+++ b/libdaemon/dfork.c
@@ -150,7 +150,7 @@ pid_t daemon_fork(void) {
}
if ((pid = fork()) < 0) { /* First fork */
- daemon_log(LOG_ERR, "First fork() failed: %s\n", strerror(errno));
+ daemon_log(LOG_ERR, "First fork() failed: %s", strerror(errno));
close(pipe_fds[0]);
close(pipe_fds[1]);
sigaction(SIGCHLD, &sa_old, NULL);