|
|
34b321 |
From 883449501b5d87002bb01c2a060cf650acf45d9a Mon Sep 17 00:00:00 2001
|
|
|
34b321 |
From: John Snow <jsnow@redhat.com>
|
|
|
34b321 |
Date: Mon, 23 Nov 2015 17:38:34 +0100
|
|
|
34b321 |
Subject: [PATCH 15/27] qemu-io: Use the qemu version for -V
|
|
|
34b321 |
|
|
|
34b321 |
RH-Author: John Snow <jsnow@redhat.com>
|
|
|
34b321 |
Message-id: <1448300320-7772-16-git-send-email-jsnow@redhat.com>
|
|
|
34b321 |
Patchwork-id: 68442
|
|
|
34b321 |
O-Subject: [RHEL-7.3 qemu-kvm PATCH v2 15/21] qemu-io: Use the qemu version for -V
|
|
|
34b321 |
Bugzilla: 1272523
|
|
|
34b321 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
34b321 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
34b321 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
34b321 |
|
|
|
34b321 |
From: Kevin Wolf <kwolf@redhat.com>
|
|
|
34b321 |
|
|
|
34b321 |
Always printing 0.0.1 and never updating the version number wasn't very
|
|
|
34b321 |
useful. qemu-io is released with qemu, so using the same version number
|
|
|
34b321 |
makes most sense.
|
|
|
34b321 |
|
|
|
34b321 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
34b321 |
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
34b321 |
(cherry picked from commit 02da386a2d7a020e80b0aed64769efa9dd42072a)
|
|
|
34b321 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
34b321 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
34b321 |
---
|
|
|
34b321 |
qemu-io.c | 4 +---
|
|
|
34b321 |
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
34b321 |
|
|
|
34b321 |
diff --git a/qemu-io.c b/qemu-io.c
|
|
|
34b321 |
index e685808..16b2d8a 100644
|
|
|
34b321 |
--- a/qemu-io.c
|
|
|
34b321 |
+++ b/qemu-io.c
|
|
|
34b321 |
@@ -23,8 +23,6 @@
|
|
|
34b321 |
#include "trace/control.h"
|
|
|
34b321 |
#include "qemu/timer.h"
|
|
|
34b321 |
|
|
|
34b321 |
-#define VERSION "0.0.1"
|
|
|
34b321 |
-
|
|
|
34b321 |
#define CMD_NOFILE_OK 0x01
|
|
|
34b321 |
|
|
|
34b321 |
char *progname;
|
|
|
34b321 |
@@ -418,7 +416,7 @@ int main(int argc, char **argv)
|
|
|
34b321 |
}
|
|
|
34b321 |
break;
|
|
|
34b321 |
case 'V':
|
|
|
34b321 |
- printf("%s version %s\n", progname, VERSION);
|
|
|
34b321 |
+ printf("%s version %s\n", progname, QEMU_VERSION);
|
|
|
34b321 |
exit(0);
|
|
|
34b321 |
case 'h':
|
|
|
34b321 |
usage(progname);
|
|
|
34b321 |
--
|
|
|
34b321 |
1.8.3.1
|
|
|
34b321 |
|