Skip to contentSkip to conversation

qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION (was qemu-img: Add --pkgversion common option)

PATCH Applied Don Slutz 3 participants 5 messages Jan 9, 2015 – Feb 2, 2015

lore
Share & tools
lore

Don Slutz

author
#0 lore raw

v2 cover qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION (was qemu-img: Add --pkgversion common option)

Changes v1 to v2:

Added a cover letter because subject changed.

Peter Maydell & Eric Blake
Switch to be consistent with both linux-user and the softmmu emulators

---------------

Just a little backgound. --version was added to qemu-img:

5f6979cb (Jeff Cody 2014-04-28 14:37:18 -0400

I did this cahnge a long time before and just now getting around to posting it:

85f9f5b2 (Don Slutz 2012-12-20 15:47:37 -0500

Don Slutz (1):
qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION

 qemu-img.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.8.4
author
#1 lore raw

PATCH v2 1/1 qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION

This is the same way vl.c handles this.

---
 qemu-img.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-img.c +1 -1
index 7876258..b6e9220 100644
@@ -35,7 +35,7 @@
 #include "block/qapi.h"
 #include <getopt.h>
 
-#define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION \
+#define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION QEMU_PKGVERSION \
                           ", Copyright (c) 2004-2008 Fabrice Bellard\n"
 
 typedef struct img_cmd_t {
Signature · 1 line
1.8.4
Reviewed-by on v2 1/1
#2 lore raw

Re: [Qemu-devel] [PATCH v2 1/1] qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION

Quoted 6 lines · Don Slutz

This is the same way vl.c handles this.

---
 qemu-img.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
qemu-img.c +1 -1
index 7876258..b6e9220 100644
@@ -35,7 +35,7 @@
 #include "block/qapi.h"
 #include <getopt.h>
 
-#define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION \
+#define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION QEMU_PKGVERSION \
                           ", Copyright (c) 2004-2008 Fabrice Bellard\n"
 
 typedef struct img_cmd_t {
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
author
#3 lore raw

Re: [Qemu-devel] [PATCH v2 1/1] qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION

Ping.

Quoted 26 lines · Eric Blake
Quoted 6 lines · Don Slutz

This is the same way vl.c handles this.

---
 qemu-img.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
qemu-img.c +1 -1
index 7876258..b6e9220 100644
@@ -35,7 +35,7 @@
 #include "block/qapi.h"
 #include <getopt.h>
 
-#define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION \
+#define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION QEMU_PKGVERSION \
                           ", Copyright (c) 2004-2008 Fabrice Bellard\n"
 
 typedef struct img_cmd_t {