[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] ui/spice-core: report version in 'info spice'
From: |
Alon Levy |
Subject: |
[Qemu-devel] [PATCH 2/2] ui/spice-core: report version in 'info spice' |
Date: |
Tue, 9 Aug 2011 23:53:35 +0300 |
Signed-off-by: Alon Levy <address@hidden>
---
ui/spice-core.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 3d77c01..342ed6c 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -372,6 +372,10 @@ void do_info_spice_print(Monitor *mon, const QObject *data)
monitor_printf(mon, " address: %s:%d [tls]\n", host, port);
}
monitor_printf(mon, " auth: %s\n", qdict_get_str(server, "auth"));
+ monitor_printf(mon, " version: %d.%d.%d\n",
+ (SPICE_SERVER_VERSION & 0xff0000) >> 16,
+ (SPICE_SERVER_VERSION & 0xff00) >> 8,
+ SPICE_SERVER_VERSION & 0xff);
channels = qdict_get_qlist(server, "channels");
if (qlist_empty(channels)) {
--
1.7.6
Re: [Qemu-devel] [PATCH 1/2] qxl: unbreak after memory API conversion, Gerd Hoffmann, 2011/08/10