From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhLpy-0005X3-B2 for qemu-devel@nongnu.org; Tue, 28 May 2013 11:29:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhLpl-0007eD-Sl for qemu-devel@nongnu.org; Tue, 28 May 2013 11:29:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhLpl-0007e5-Jr for qemu-devel@nongnu.org; Tue, 28 May 2013 11:29:09 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4SFT8Mk021621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 28 May 2013 11:29:09 -0400 From: Kevin Wolf Date: Tue, 28 May 2013 17:27:35 +0200 Message-Id: <1369754856-30036-16-git-send-email-kwolf@redhat.com> In-Reply-To: <1369754856-30036-1-git-send-email-kwolf@redhat.com> References: <1369754856-30036-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 15/16] qemu-io: Use the qemu version for -V List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, stefanha@redhat.com, lcapitulino@redhat.com Always printing 0.0.1 and never updating the version number wasn't very useful. qemu-io is released with qemu, so using the same version number makes most sense. Signed-off-by: Kevin Wolf --- qemu-io.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index 228567a..6d16192 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -19,8 +19,6 @@ #include "block/block_int.h" #include "trace/control.h" -#define VERSION "0.0.1" - #define CMD_NOFILE_OK 0x01 char *progname; @@ -380,7 +378,7 @@ int main(int argc, char **argv) } break; case 'V': - printf("%s version %s\n", progname, VERSION); + printf("%s version %s\n", progname, QEMU_VERSION); exit(0); case 'h': usage(progname); -- 1.8.1.4