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>
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);