diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/log.c | 6 | ||||
-rw-r--r-- | server/mpm/prefork/prefork.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/server/log.c b/server/log.c index f8c2af4204..16574ab22e 100644 --- a/server/log.c +++ b/server/log.c @@ -625,9 +625,9 @@ AP_DECLARE(void) ap_log_pid(apr_pool_t *p, const char *filename) * based on the last modification time of the pid file. */ ap_log_perror(APLOG_MARK, APLOG_WARNING, 0, p, - apr_psprintf(p, "pid file %s overwritten -- Unclean " - "shutdown of previous Apache run?", - fname)); + "pid file %s overwritten -- Unclean " + "shutdown of previous Apache run?", + fname); } if ((rv = apr_file_open(&pid_file, fname, diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index 3dbbe58fff..7acd04b976 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -210,11 +210,11 @@ static void accept_mutex_on(void) if (ap_my_generation != ap_scoreboard_image->global->running_generation) { - ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, NULL, msg); + ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, NULL, "%s", msg); clean_child_exit(0); } else { - ap_log_error(APLOG_MARK, APLOG_EMERG, rv, NULL, msg); + ap_log_error(APLOG_MARK, APLOG_EMERG, rv, NULL, "%s", msg); exit(APEXIT_CHILDFATAL); } } @@ -228,14 +228,14 @@ static void accept_mutex_off(void) if (ap_my_generation != ap_scoreboard_image->global->running_generation) { - ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, NULL, msg); + ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, NULL, "%s", msg); /* don't exit here... we have a connection to * process, after which point we'll see that the * generation changed and we'll exit cleanly */ } else { - ap_log_error(APLOG_MARK, APLOG_EMERG, rv, NULL, msg); + ap_log_error(APLOG_MARK, APLOG_EMERG, rv, NULL, "%s", msg); exit(APEXIT_CHILDFATAL); } } |