From: Juergen Gross Date: Wed, 18 Jan 2023 09:50:15 +0000 (+0100) Subject: tools/xenstore: make output of "xenstore-control help" more pretty X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5f5d25c84c0d3e0c6bdce2e135262ea913a4dd76;p=people%2Fandrewcoop%2Fxen.git tools/xenstore: make output of "xenstore-control help" more pretty Using a tab for separating the command from the options in the output of "xenstore-control help" results in a rather ugly list. Use a fixed size for the command instead. Signed-off-by: Juergen Gross Reviewed-by: Julien Grall --- diff --git a/tools/xenstore/xenstored_control.c b/tools/xenstore/xenstored_control.c index 000b2bb8c7..cbd62556c3 100644 --- a/tools/xenstore/xenstored_control.c +++ b/tools/xenstore/xenstored_control.c @@ -996,7 +996,7 @@ static int do_control_help(const void *ctx, struct connection *conn, if (!resp) return ENOMEM; for (cmd = 0; cmd < ARRAY_SIZE(cmds); cmd++) { - resp = talloc_asprintf_append(resp, "%s\t%s\n", + resp = talloc_asprintf_append(resp, "%-15s %s\n", cmds[cmd].cmd, cmds[cmd].pars); if (!resp) return ENOMEM;