]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: startup: show the list of detected features at runtime with haproxy -vv
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 12 Feb 2026 16:49:11 +0000 (17:49 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 12 Feb 2026 17:02:19 +0000 (18:02 +0100)
Features prefixed by "HAVE_WORKING_" in the haproxy -vv feature list,
are features that are detected during runtime.

This patch splits these features on another line in haproxy -vv. This
line is named "Detected feature list".

src/haproxy.c

index c18f1ce5f2f20fffcb26c2556ad1f846649dfe55..bdad75503033a9ca8b4957fbcb71b6e8a5511830 100644 (file)
@@ -692,7 +692,12 @@ static void display_build_opts()
        printf("Build options : %s", build_opts_string);
        printf("\n\nFeature list :");
        for (tmp = feat_list;tmp->ptr;tmp++)
-               printf(" %.*s", (int)tmp->len, tmp->ptr);
+               if (!isttest(istist(*tmp, ist("HAVE_WORKING_"))))
+                       printf(" %.*s", (int)tmp->len, tmp->ptr);
+       printf("\nDetected feature list :");
+       for (tmp = feat_list;tmp->ptr;tmp++)
+               if (isttest(istist(*tmp, ist("HAVE_WORKING_"))))
+                       printf(" %.*s", (int)tmp->len, tmp->ptr);
        printf("\n\nDefault settings :"
               "\n  bufsize = %d, maxrewrite = %d, maxpollevents = %d"
               "\n\n",