]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: debug: align output style of debug_parse_cli_show_dev with cpu_dump_topology
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 17 Jul 2025 10:03:47 +0000 (12:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jul 2025 17:08:06 +0000 (19:08 +0200)
Align titles style of debug_parse_cli_show_dev() with
cpu_dump_topology(). We will call the latter inside of
debug_parse_cli_show_dev() to show thread-cpu bindings info.

src/debug.c

index eb6089c8c4234cde3ed45c4d857d80a5ee56b791..2ea6d1c10652b2a091ba86e4eec42bb27b1b3892 100644 (file)
@@ -651,14 +651,14 @@ static int debug_parse_cli_show_dev(char **args, char *payload, struct appctx *a
        chunk_reset(&trash);
 
        chunk_appendf(&trash, "HAProxy version %s\n", haproxy_version);
-       chunk_appendf(&trash, "Features\n  %s\n", build_features);
+       chunk_appendf(&trash, "Features:\n  %s\n", build_features);
 
-       chunk_appendf(&trash, "Build options\n");
+       chunk_appendf(&trash, "Build options:\n");
        for (build_opt = NULL; (build_opt = hap_get_next_build_opt(build_opt)); )
                if (append_prefixed_str(&trash, *build_opt, "  ", '\n', 0) == 0)
                        chunk_strcat(&trash, "\n");
 
-       chunk_appendf(&trash, "Platform info\n");
+       chunk_appendf(&trash, "Platform info:\n");
        if (*post_mortem.platform.hw_vendor)
                chunk_appendf(&trash, "  machine vendor: %s\n", post_mortem.platform.hw_vendor);
        if (*post_mortem.platform.hw_family)
@@ -692,7 +692,7 @@ static int debug_parse_cli_show_dev(char **args, char *payload, struct appctx *a
        if (*post_mortem.platform.distro)
                chunk_appendf(&trash, "  distro pretty name: %s\n", HA_ANON_CLI(post_mortem.platform.distro));
 
-       chunk_appendf(&trash, "Process info\n");
+       chunk_appendf(&trash, "Process info:\n");
        chunk_appendf(&trash, "  pid: %d\n", post_mortem.process.pid);
        chunk_appendf(&trash, "  cmdline: ");
        for (i = 0; i < post_mortem.process.argc; i++)