* [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option
@ 2015-01-08 14:30 Don Slutz
2015-01-08 14:40 ` Peter Maydell
0 siblings, 1 reply; 7+ messages in thread
From: Don Slutz @ 2015-01-08 14:30 UTC (permalink / raw)
To: qemu-devel; +Cc: Kevin Wolf, Don Slutz, Stefan Hajnoczi
This will output the QEMU_PKGVERSION which is set by configure's
--with-pkgversion=
Signed-off-by: Don Slutz <dslutz@verizon.com>
---
qemu-img.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/qemu-img.c b/qemu-img.c
index 7876258..f73bea6 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -3064,6 +3064,17 @@ int main(int argc, char **argv)
}
cmdname = argv[1];
+ /* Report pkgversion */
+ if (!strcmp(cmdname, "--pkgversion")) {
+ argc--; argv++; /* Drop special arg. */
+ printf("qemu-img version " QEMU_VERSION
+ " pkgversion " QEMU_PKGVERSION "\n");
+ if (argc < 2) {
+ return 0;
+ }
+ cmdname = argv[1]; /* Update */
+ }
+
/* find the command */
for (cmd = img_cmds; cmd->name != NULL; cmd++) {
if (!strcmp(cmdname, cmd->name)) {
--
1.8.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option
2015-01-08 14:30 [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option Don Slutz
@ 2015-01-08 14:40 ` Peter Maydell
2015-01-08 16:41 ` Eric Blake
0 siblings, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2015-01-08 14:40 UTC (permalink / raw)
To: Don Slutz; +Cc: Kevin Wolf, QEMU Developers, Stefan Hajnoczi
On 8 January 2015 at 14:30, Don Slutz <dslutz@verizon.com> wrote:
> This will output the QEMU_PKGVERSION which is set by configure's
> --with-pkgversion=
> + /* Report pkgversion */
> + if (!strcmp(cmdname, "--pkgversion")) {
> + argc--; argv++; /* Drop special arg. */
> + printf("qemu-img version " QEMU_VERSION
> + " pkgversion " QEMU_PKGVERSION "\n");
> + if (argc < 2) {
> + return 0;
> + }
> + cmdname = argv[1]; /* Update */
> + }
Wouldn't it be better to just report the QEMU_PKGVERSION
as part of the version info we already report in --version?
This would be consistent with both linux-user and the softmmu
emulators, which do:
printf("QEMU emulator version " QEMU_VERSION QEMU_PKGVERSION ",
Copyright (c) 2003-2008 Fabrice Bellard\n");
-- PMM
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option
2015-01-08 14:40 ` Peter Maydell
@ 2015-01-08 16:41 ` Eric Blake
2015-01-09 15:28 ` Don Slutz
0 siblings, 1 reply; 7+ messages in thread
From: Eric Blake @ 2015-01-08 16:41 UTC (permalink / raw)
To: Peter Maydell, Don Slutz; +Cc: Kevin Wolf, QEMU Developers, Stefan Hajnoczi
[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]
On 01/08/2015 07:40 AM, Peter Maydell wrote:
> On 8 January 2015 at 14:30, Don Slutz <dslutz@verizon.com> wrote:
>> This will output the QEMU_PKGVERSION which is set by configure's
>> --with-pkgversion=
>
>> + /* Report pkgversion */
>> + if (!strcmp(cmdname, "--pkgversion")) {
>> + argc--; argv++; /* Drop special arg. */
>> + printf("qemu-img version " QEMU_VERSION
>> + " pkgversion " QEMU_PKGVERSION "\n");
>> + if (argc < 2) {
>> + return 0;
>> + }
>> + cmdname = argv[1]; /* Update */
>> + }
>
> Wouldn't it be better to just report the QEMU_PKGVERSION
> as part of the version info we already report in --version?
> This would be consistent with both linux-user and the softmmu
> emulators, which do:
>
> printf("QEMU emulator version " QEMU_VERSION QEMU_PKGVERSION ",
> Copyright (c) 2003-2008 Fabrice Bellard\n");
I agree - output the information unconditionally on --version, rather
than inventing a new option.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option
2015-01-08 16:41 ` Eric Blake
@ 2015-01-09 15:28 ` Don Slutz
2015-01-09 16:13 ` Eric Blake
0 siblings, 1 reply; 7+ messages in thread
From: Don Slutz @ 2015-01-09 15:28 UTC (permalink / raw)
To: Eric Blake, Peter Maydell, Don Slutz
Cc: Kevin Wolf, QEMU Developers, Stefan Hajnoczi
[-- Attachment #1: PGP/MIME version identification --]
[-- Type: application/pgp-encrypted, Size: 11 bytes --]
[-- Attachment #2: OpenPGP encrypted message --]
[-- Type: application/octet-stream, Size: 2501 bytes --]
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.14 (GNU/Linux)
hQIMA7NjIQoR5IQBARAAuQ425FTvEZc96G96Z0UpQIwJUidSJZ2HpeXPhMJe6Gwv
gt44CK2F64ux+aM0pH4F+g1PDJuXCgx2ADT1DuwAx/9kWKezxgRyicnp08GfJG3/
R4II7YntM9K3UTp+c1jisejx1CSowGvI+QxFyFjXrAlZntp1Cj/HxpyFvXuXmWCT
VLog7LqLgAQ5fUnWhBiReQ9eoPhhp5Mz7SaxQUzBQLU0kqwpj4Vj/J32jjCAyM6Z
503WGsMe4Qpzac+BX59LaPU7veimykihzMP5oHTE91SxxMXIdS8EM7gfUxNLA0ac
UMupE9kHVr95D9HLnrK/8Z0t53sVngjkDYSOuosnBLdQp/5qRvaRCsknGaDyOu2F
IW51ytmZOsjirh7EvyM0/elA88P0wKjHh0KYadhkTC+816YV7Pbypv/IEl0EfJTi
0oTUW0svzdQqHmZFp4R+FeuOEAlVtScYH+f3kGXq87dAy4GWMSGbqWttgOuhHhW/
FPfb0cInoYuZXUUhamECsB10dQP+IU+ZswOpDVwKMeeaxbi4ofTaJDf18WhKHkeB
umN8nzt4xU6+y9VJbOw5tMrYVtfKRtKLfXOFC5Jk9yPD9hYPtrQl/WNB0OyVWWG8
hG/fX/IrZpSxXXL49xBWZ2f8ChtHYFxm7NpgBXngh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Yn
/t2ewe1+Mc3kzDA0l4yaMZ1FmOOPi/sgN4ZC9P9wanam7klajbbofEz8VM/WOq4G
fyHryFbDpdth7eq8t9SrCYYjSKeM1FLGp6K/hFg9CFqnP/r5NXC3pXFV4AMdr5m7
i5PIyg8XxrEf4WQKXgo4CE1Di0C5quW2WylqdXRu21hs0dC2AaGWemVe5ly1T9XO
vQdBUtZ5qwnrDre1+WX2Mph+FyH8z7/LKTQ1zQcHwJa9b10E/M6meoS7noUWEK5o
V5ZYSDM6ntS0LWSkIhMDJ36fMRNy/fL4g6WlnJ1V0ortxY1VAKRe1AGZo33ZZsAx
QVwe97I5Rb2w4iioczMFheTAHaPCijfi4Tpb8ffrFAeHrJ5Fd6pslNBDwPRGt+7u
RxylBF86N10nOmVSQCXIXoAh4GL6gWfUvFAgvt2ppoYtYOdfjqNvqgpxb5/sbIW7
GWq0zh5HBgRUHqEy2PzojEWElxjVkN95Pa1tFBoIjeldUgzAqi/CaZ9+/bWozrsi
IaUgtVRwE78TItDhBQ+6U/LSsKpb9r6bYxGIuZ0aIL5M33j4AsLJZv8PPRbl8rzh
ipdBB7Ak7KEmvy8SLA3AgPiBr53mpk5MfASZHw1e83wYV8fKYmGvkGu6tKrgqQWB
=ZOx4
-----END PGP MESSAGE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option
2015-01-09 15:28 ` Don Slutz
@ 2015-01-09 16:13 ` Eric Blake
2015-01-09 18:02 ` Don Slutz
0 siblings, 1 reply; 7+ messages in thread
From: Eric Blake @ 2015-01-09 16:13 UTC (permalink / raw)
To: Don Slutz, Peter Maydell; +Cc: Kevin Wolf, QEMU Developers, Stefan Hajnoczi
[-- Attachment #1: Type: text/plain, Size: 298 bytes --]
On 01/09/2015 08:28 AM, Don Slutz wrote:
[an encrypted message]
Oops, you probably want to fix your Thunderbird/Enigmail settings to
sign but not encrypt when a list is involved.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option
2015-01-09 16:13 ` Eric Blake
@ 2015-01-09 18:02 ` Don Slutz
2015-01-09 19:13 ` Don Slutz
0 siblings, 1 reply; 7+ messages in thread
From: Don Slutz @ 2015-01-09 18:02 UTC (permalink / raw)
To: Eric Blake, Don Slutz, Peter Maydell
Cc: Kevin Wolf, QEMU Developers, Stefan Hajnoczi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sigh. Will look into this.
-Don Slutz
On 01/09/15 11:13, Eric Blake wrote:
> On 01/09/2015 08:28 AM, Don Slutz wrote:
>
> [an encrypted message]
>
> Oops, you probably want to fix your Thunderbird/Enigmail settings
> to sign but not encrypt when a list is involved.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iQIcBAEBAgAGBQJUsBfAAAoJEHkofi8zcwBkiEwQAJRHWVs/355i9x5S8/zb6S1c
G2WEkcXPgy6/hidX2rtAB37fCT7+DkYtQq94pOXfhkIVlXhuTk5VX4tBfSKiZFPz
LtLoKXxfWMG/pcU3xQKrpW32ZIwafYfbYhSs/0LIIy4kyiEHJZ4AQ8GztRin/MRu
H8EF9QZOxR8W3934lHiU5J+qlp5ShIH2/1AUwXmr+P9tFjyldcJlo+Zv2PXdv2Zg
St7Z2WB0BlacA8i0rSo9I9lYDaVWPzxBqkRJMyCz8lqUC5KTMk+qend9H9VVsdkW
gpSYvyrf73rUMqauY6boJZjJxl5SiVktaTmxDkkOqQHH3wynryogEt85lywpNB2C
0v+isTvSou5qThVgMbPF6LOg5KzHoHYO5BPVjq9VIRVGsr2fHNkSLIHQ8YKKLnJO
vZGZSftozrcD+A4C2rWmYlKr/rTFaEYKLjd7K2U+oak2xWrFX2h/cd0lyY7syF29
i54Bcku91wFigymgJJ6BuSkIlsM+rPSuOF3UTPqLqIfKx/EjeanBtGlzR/vIGzvU
7wvOQPs0RtULmms6vPDpw8ZmQb+T2PVvFf4jmpknuRt/Wokxoyl+sNL5msmcgTzb
x0k+0TPhIvsvUo3HYoorGoaRZyZYgk6podL11uMCFr7Iq/Y+kqo2hUnG610bH5c5
s7w+oERv382PKof37RM6
=KSVr
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option
2015-01-09 18:02 ` Don Slutz
@ 2015-01-09 19:13 ` Don Slutz
0 siblings, 0 replies; 7+ messages in thread
From: Don Slutz @ 2015-01-09 19:13 UTC (permalink / raw)
To: Don Slutz, Eric Blake, Peter Maydell
Cc: Kevin Wolf, QEMU Developers, Stefan Hajnoczi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/09/15 13:02, Don Slutz wrote:
> Sigh. Will look into this. -Don Slutz
>
Here is what I said (un-encrypeted):
On 01/08/15 11:41, Eric Blake wrote:
> On 01/08/2015 07:40 AM, Peter Maydell wrote:
>> On 8 January 2015 at 14:30, Don Slutz <dslutz@verizon.com>
>> wrote:
>>
>> Wouldn't it be better to just report the QEMU_PKGVERSION as part
>> of the version info we already report in --version? This would
>> be consistent with both linux-user and the softmmu emulators,
>> which do:
>
> I agree - output the information unconditionally on --version,
> rather than inventing a new option.
>
Will do. Have send out a v2.
-Don Slutz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iQIcBAEBAgAGBQJUsChGAAoJEHkofi8zcwBkpJ4P/ipotMH4W4z3zZOaNKkPwwjp
NQzGmxNet4KqRZ32u1GKmSOhitGEpc/2nc0+e/vSPUnY24Tf9pA0vClTl9dJSjJw
DYLSyUl0yBIYvjsrt8ozkoD0IrTeDGC20a2/iHeg0935Ep/CcFOYPoCV/MIYbQX9
LwEEIBYa3mHq3scslBMsW/Do4brUjSv1KM9vWhGthoSiGeeXpG0wnjT9X2Y9QLY+
PuuMESYuYsoWtgeD4J2g9QgZ8N5MwtDw5maud4kdgDpD4yG+hQ/b7FGmptGQczxz
WSiwIIVhPXJkg121GNDXcUAqAEn3V2qBgYSK/A/oflCTBjw55kalzVI5vDcW14KO
VMTebc8wI+g9p3aBweCluezenYPdRgpLU9++14/YyfY5+Z5+hOKs7xOgujto9qWI
/jq8AO0Qgpas6tY40lcN7O09Oli0rIXQXOI1feFcxclY5wkydWBBTcZlx8vhaMxi
oP0ZT9z8Sp8BorHYpqYaPkQP3AQKCyUX5uI3A9omnNNT6TfcE5+OYPBvEewDvBAz
IwwIQ+zWWrYH0SHQOguKg488I/rJSm9jQ8eA/lmBDE+nKiH/nI8zGrxIlAQm8xQh
PEQUZj9uJEpEA8RFreSNxtxubCm9Ug83fedcXyg/Pdp3C9i2pkmObVTtlKsJnwEB
5w2hCXXcdNMGGuMRAes/
=1G1f
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-01-09 19:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-08 14:30 [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option Don Slutz
2015-01-08 14:40 ` Peter Maydell
2015-01-08 16:41 ` Eric Blake
2015-01-09 15:28 ` Don Slutz
2015-01-09 16:13 ` Eric Blake
2015-01-09 18:02 ` Don Slutz
2015-01-09 19:13 ` Don Slutz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).