From 84c44613f9ad8d13e0d2dbee767051527072dc12 Mon Sep 17 00:00:00 2001 From: Wenchao Xia Date: Mon, 14 Jan 2013 14:06:29 +0800 Subject: HMP: add sub command table to info Now info command takes a table of sub info commands, and changed do_info() to do_info_help() to do help funtion only. Note that now "info " returns error instead of list of info topics. Signed-off-by: Wenchao Xia Signed-off-by: Luiz Capitulino --- hmp-commands.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hmp-commands.hx') diff --git a/hmp-commands.hx b/hmp-commands.hx index 67569eff4a..0934b9b915 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1521,7 +1521,8 @@ ETEXI .args_type = "item:s?", .params = "[subcommand]", .help = "show various information about the system state", - .mhandler.cmd = do_info, + .mhandler.cmd = do_info_help, + .sub_table = info_cmds, }, STEXI -- cgit v1.2.1