Message ID | 1481014882-99783-3-git-send-email-nic@opencloud.tech |
---|---|
State | Accepted |
Headers | show |
On Tue, Dec 06, 2016 at 01:01:21AM -0800, nickcooper-zhangtonghao wrote:
> Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech>
Applied to master, thanks!
diff --git a/lib/dpctl.c b/lib/dpctl.c index edccb7f..bdccce7 100644 --- a/lib/dpctl.c +++ b/lib/dpctl.c @@ -1780,8 +1780,12 @@ dpctl_unixctl_register(void) for (p = all_commands; p->name != NULL; p++) { if (strcmp(p->name, "help")) { char *cmd_name = xasprintf("dpctl/%s", p->name); - unixctl_command_register(cmd_name, "", p->min_args, p->max_args, - dpctl_unixctl_handler, p->handler); + unixctl_command_register(cmd_name, + p->usage, + p->min_args, + p->max_args, + dpctl_unixctl_handler, + p->handler); free(cmd_name); } }
Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech> --- lib/dpctl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)