Commit 9bc9d1c75abf23b1a11c8e633fe5eeb3d6d4c8d3
1 parent
8926b517
info version command
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1115 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
7 additions
and
0 deletions
monitor.c
| ... | ... | @@ -190,6 +190,11 @@ static void do_info(const char *item) |
| 190 | 190 | cmd->handler(); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | +static void do_info_version(void) | |
| 194 | +{ | |
| 195 | + term_printf("%s\n", QEMU_VERSION); | |
| 196 | +} | |
| 197 | + | |
| 193 | 198 | static void do_info_network(void) |
| 194 | 199 | { |
| 195 | 200 | int i, j; |
| ... | ... | @@ -864,6 +869,8 @@ static term_cmd_t term_cmds[] = { |
| 864 | 869 | }; |
| 865 | 870 | |
| 866 | 871 | static term_cmd_t info_cmds[] = { |
| 872 | + { "version", "", do_info_version, | |
| 873 | + "", "show the version of qemu" }, | |
| 867 | 874 | { "network", "", do_info_network, |
| 868 | 875 | "", "show the network state" }, |
| 869 | 876 | { "block", "", do_info_block, | ... | ... |