From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkChe-0005I0-QL for qemu-devel@nongnu.org; Wed, 05 Jun 2013 08:20:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkChZ-0004k9-6Z for qemu-devel@nongnu.org; Wed, 05 Jun 2013 08:20:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkChY-0004jz-WB for qemu-devel@nongnu.org; Wed, 05 Jun 2013 08:20:29 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r55CKSmb016991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 5 Jun 2013 08:20:28 -0400 From: Kevin Wolf Date: Wed, 5 Jun 2013 14:19:40 +0200 Message-Id: <1370434781-28570-16-git-send-email-kwolf@redhat.com> In-Reply-To: <1370434781-28570-1-git-send-email-kwolf@redhat.com> References: <1370434781-28570-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v2 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 514edcb..cb9def5 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