[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] tools/xenstore: make output of "xenstore-control help" more pretty



commit 5f5d25c84c0d3e0c6bdce2e135262ea913a4dd76
Author:     Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Wed Jan 18 10:50:15 2023 +0100
Commit:     Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Fri Jan 20 09:23:51 2023 +0000

    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 <jgross@xxxxxxxx>
    Reviewed-by: Julien Grall <jgrall@xxxxxxxxxx>
---
 tools/xenstore/xenstored_control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.