]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
main: Follow up to r1897240: Fix bad log copypasta.
authorYann Ylavic <ylavic@apache.org>
Wed, 2 Feb 2022 02:06:42 +0000 (02:06 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 2 Feb 2022 02:06:42 +0000 (02:06 +0000)
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

index 2681521542c4dfd6be6bfe3a6d08589ba1f4464c..9512ea141ad15d7b8ecd5ffbdfa7ef24e799f139 100644 (file)
@@ -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);
         }