From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGg02-0003uA-Di for qemu-devel@nongnu.org; Sun, 10 Oct 2004 11:52:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGg01-0003tx-Ue for qemu-devel@nongnu.org; Sun, 10 Oct 2004 11:52:42 -0400 Received: from [129.104.30.34] (helo=a.mx.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CGfsm-0001px-GO for qemu-devel@nongnu.org; Sun, 10 Oct 2004 11:45:13 -0400 Received: from localhost (localhost [127.0.0.1]) by djali.polytechnique.org (Postfix) with ESMTP id 1D9813327A for ; Sun, 10 Oct 2004 17:45:11 +0200 (CEST) Received: from djali.polytechnique.org ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11902-08 for ; Sun, 10 Oct 2004 17:45:10 +0200 (CEST) Received: from bellard.org (unknown [84.99.204.95]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id 988BA33274 for ; Sun, 10 Oct 2004 17:45:10 +0200 (CEST) Message-ID: <4169593B.6070105@bellard.org> Date: Sun, 10 Oct 2004 17:46:03 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] info version References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Applied. For the boot option, I prefer to wait. Fabrice. Anand Kumria wrote: > Hi, > > I regularly have a number of different versions of qemu installed. The > monitor display the version number on the first line but, for me, it has > frequently scrolled away. > > The attached patch is a small 'info version' command. > > Regards, > Anand > > > diff -X dont-diff -urN upstream/monitor.c my-versions/monitor.c > --- upstream/monitor.c 2004-10-10 04:08:01.000000000 +1000 > +++ my-versions/monitor.c 2004-10-10 18:43:45.000000000 +1000 > @@ -190,6 +190,11 @@ > cmd->handler(); > } > > +static void do_info_version(void) > +{ > + term_printf("%s\n", QEMU_VERSION); > +} > + > static void do_info_network(void) > { > int i, j; > @@ -864,6 +869,8 @@ > }; > > 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, > > > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > >