From: Eric Blake <eblake@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>, Don Slutz <dslutz@verizon.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option
Date: Thu, 08 Jan 2015 09:41:20 -0700 [thread overview]
Message-ID: <54AEB330.7040005@redhat.com> (raw)
In-Reply-To: <CAFEAcA8U38JFPxnYqEZ_E9NkWuvwJv3GnpiiKNp4dY8qNt0wNw@mail.gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2015-01-08 16:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54AEB330.7040005@redhat.com \
--to=eblake@redhat.com \
--cc=dslutz@verizon.com \
--cc=kwolf@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).