On 01/08/2015 07:40 AM, Peter Maydell wrote:
> On 8 January 2015 at 14:30, Don Slutz <dsl...@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: signature.asc
Description: OpenPGP digital signature

Reply via email to