Skip to content

Commit

Permalink
info version command
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1115 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
bellard committed Oct 10, 2004
1 parent 8926b51 commit 9bc9d1c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ static void do_info(const char *item)
cmd->handler();
}

static void do_info_version(void)
{
term_printf("%s\n", QEMU_VERSION);
}

static void do_info_network(void)
{
int i, j;
Expand Down Expand Up @@ -864,6 +869,8 @@ static term_cmd_t term_cmds[] = {
};

static term_cmd_t info_cmds[] = {
{ "version", "", do_info_version,
"", "show the version of qemu" },
{ "network", "", do_info_network,
"", "show the network state" },
{ "block", "", do_info_block,
Expand Down

0 comments on commit 9bc9d1c

Please sign in to comment.