diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-01-14 14:06:29 +0800 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-01-17 10:24:52 -0200 |
commit | 84c44613f9ad8d13e0d2dbee767051527072dc12 (patch) | |
tree | dc5b06bbad12ca0d71837152302842380c75a886 /hmp-commands.hx | |
parent | a13ced59a4f305e37bd89f27f2b18f915889cad1 (diff) | |
download | qemu-84c44613f9ad8d13e0d2dbee767051527072dc12.tar.gz qemu-84c44613f9ad8d13e0d2dbee767051527072dc12.tar.bz2 qemu-84c44613f9ad8d13e0d2dbee767051527072dc12.zip |
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 <unknown-topic>" returns error instead
of list of info topics.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r-- | hmp-commands.hx | 3 |
1 files changed, 2 insertions, 1 deletions
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 |