diff options
author | Ben Pfaff <blp@nicira.com> | 2011-12-22 15:51:39 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-01-02 12:48:42 -0800 |
commit | e7b5947add23e57d6b77f31385a1d9116a28f6af (patch) | |
tree | 18cf2d12338c0e9f57b6c7a98441ccdc0168e4b6 /lib/unixctl.c | |
parent | 4dd1e3cabbd109e322553a7b3d4c875e697d2069 (diff) | |
download | openvswitch-e7b5947add23e57d6b77f31385a1d9116a28f6af.tar.gz |
unixctl: Improve readability of "help" output for long command names.
Without this change, if a unixctl command name is 23 character long or
longer, no space appeared between the command name and its usage. This
commit ensures that at least one space always appears.
No command yet has a name this long. I discovered this issue when I added
one that does.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/unixctl.c')
-rw-r--r-- | lib/unixctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unixctl.c b/lib/unixctl.c index 2a2bcf215..caaf252df 100644 --- a/lib/unixctl.c +++ b/lib/unixctl.c @@ -96,7 +96,7 @@ unixctl_help(struct unixctl_conn *conn, int argc OVS_UNUSED, const struct shash_node *node = nodes[i]; const struct unixctl_command *command = node->data; - ds_put_format(&ds, " %-23s%s\n", node->name, command->usage); + ds_put_format(&ds, " %-23s %s\n", node->name, command->usage); } free(nodes); |