From: Yann Ylavic Date: Wed, 2 Feb 2022 02:06:42 +0000 (+0000) Subject: main: Follow up to r1897240: Fix bad log copypasta. X-Git-Tag: 2.5.0-alpha2-ci-test-only~522 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a31b463532e83d557a4898cfb6411e144bc39266;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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); }