From patchwork Tue Aug 9 20:53:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 109278 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D49A4B70BF for ; Wed, 10 Aug 2011 06:54:34 +1000 (EST) Received: from localhost ([::1]:50844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqtJl-00066Y-QT for incoming@patchwork.ozlabs.org; Tue, 09 Aug 2011 16:54:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]:51581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqtJZ-00063D-EH for qemu-devel@nongnu.org; Tue, 09 Aug 2011 16:54:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqtJU-0002BZ-67 for qemu-devel@nongnu.org; Tue, 09 Aug 2011 16:54:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqtJT-0002BI-Qc for qemu-devel@nongnu.org; Tue, 09 Aug 2011 16:54:12 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p79KsBUP004631 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Aug 2011 16:54:11 -0400 Received: from bow.redhat.com (vpn-203-210.tlv.redhat.com [10.35.203.210]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p79Ks7TU017134; Tue, 9 Aug 2011 16:54:10 -0400 From: Alon Levy To: qemu-devel@nongnu.org Date: Tue, 9 Aug 2011 23:53:35 +0300 Message-Id: <1312923215-11824-2-git-send-email-alevy@redhat.com> In-Reply-To: <1312923215-11824-1-git-send-email-alevy@redhat.com> References: <1312923215-11824-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kraxel@redhat.com Subject: [Qemu-devel] [PATCH 2/2] ui/spice-core: report version in 'info spice' X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Alon Levy --- 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)) {