]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: threads: report the number of thread groups in build options
authorWilly Tarreau <w@1wt.eu>
Sat, 6 Aug 2022 14:44:55 +0000 (16:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 6 Aug 2022 14:45:26 +0000 (16:45 +0200)
haproxy -vv shows the number of threads but didn't report the number
of groups, let's add it.

src/thread.c

index c8462291c8d149ce859c90a37f55f4164348c4a1..64ac476a35aadfcadef07ed30f901b65f1372498 100644 (file)
@@ -1066,8 +1066,8 @@ static void __thread_init(void)
 
        thread_cpus_enabled_at_boot = thread_cpus_enabled();
 
-       memprintf(&ptr, "Built with multi-threading support (MAX_THREADS=%d, default=%d).",
-                 MAX_THREADS, thread_cpus_enabled_at_boot);
+       memprintf(&ptr, "Built with multi-threading support (MAX_TGROUPS=%d, MAX_THREADS=%d, default=%d).",
+                 MAX_TGROUPS, MAX_THREADS, thread_cpus_enabled_at_boot);
        hap_register_build_opts(ptr, 1);
 
 #if defined(DEBUG_THREAD) || defined(DEBUG_FULL)