From a31b463532e83d557a4898cfb6411e144bc39266 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Wed, 2 Feb 2022 02:06:42 +0000 Subject: [PATCH] main: Follow up to r1897240: Fix bad log copypasta. Don't stderr printf the "stat" and "failed" results from the previous apr_app_initialize() call for an error in ap_thread_main_create(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897680 13f79535-47bb-0310-9956-ffa450edef68 --- server/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/main.c b/server/main.c index 2681521542c..9512ea141ad 100644 --- a/server/main.c +++ b/server/main.c @@ -397,9 +397,9 @@ static process_rec *init_process(int *argc, const char * const * *argv) if ((rv = ap_thread_main_create(&thd, process->pool))) { char ctimebuff[APR_CTIME_LEN]; apr_ctime(ctimebuff, apr_time_now()); - fprintf(stderr, "[%s] [crit] (%d) %s: %s failed " - "to initialize thread context (%i), exiting\n", - ctimebuff, stat, (*argv)[0], failed, rv); + fprintf(stderr, "[%s] [crit] (%d) %s: failed " + "to initialize thread context, exiting\n", + ctimebuff, rv, (*argv)[0]); apr_terminate(); exit(1); } -- 2.47.3