From ff461efc591e6e5f547037a2fa098aee7940e515 Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Thu, 17 Jul 2025 12:03:47 +0200 Subject: [PATCH] MINOR: debug: align output style of debug_parse_cli_show_dev with cpu_dump_topology 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/debug.c b/src/debug.c index eb6089c8c..2ea6d1c10 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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++) -- 2.47.2