qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] info version
@ 2004-10-10 13:28 Anand Kumria
  2004-10-10 15:46 ` Fabrice Bellard
  0 siblings, 1 reply; 2+ messages in thread
From: Anand Kumria @ 2004-10-10 13:28 UTC (permalink / raw)
  To: qemu-devel

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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-10 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-10 13:28 [Qemu-devel] info version Anand Kumria
2004-10-10 15:46 ` Fabrice Bellard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).