[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V18 02/25] qemu-option: avoid duplication of def
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH V18 02/25] qemu-option: avoid duplication of default value in QemuOpts |
Date: |
Wed, 28 Aug 2013 06:57:20 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
On 08/12/2013 10:31 PM, Dong Xu Wang wrote:
> This patch moves the default value entirely to QemuOptDesc.
>
> When getting the value of an option that hasn't been set, and
> QemuOptDesc has a default value, return that. Else, behave as
> before.
>
...
> Else, return NULL.
>
> Signed-off-by: Dong Xu Wang <address@hidden>
> Reviewed-by: Eric Blake <address@hidden>
>
> v13->v14:
> 1) change code style.
> 2) assert errors.
>
> Signed-off-by: Dong Xu Wang <address@hidden>
>
> Conflicts:
> util/qemu-option.c
> ---
Awkward. You should never have a 'Conflicts:' section on an upstream
patch (except for maintainers resolving trivial conflicts during a merge
operation); and this is another case of needing to move your submission
changelog after the ---.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH V18 00/25] replace QEMUOptionParameter with QemuOpts parser, Dong Xu Wang, 2013/08/13
- [Qemu-devel] [PATCH V18 01/25] qemu-option: add def_value_str in QemuOptDesc struct and rewrite qemu_opts_print, Dong Xu Wang, 2013/08/13
- [Qemu-devel] [PATCH V18 02/25] qemu-option: avoid duplication of default value in QemuOpts, Dong Xu Wang, 2013/08/13
- Re: [Qemu-devel] [PATCH V18 02/25] qemu-option: avoid duplication of default value in QemuOpts,
Eric Blake <=
- [Qemu-devel] [PATCH V18 03/25] qemu-option: create four QemuOptsList related functions, Dong Xu Wang, 2013/08/13
- [Qemu-devel] [PATCH V18 04/25] qemu-option: create some QemuOpts functons, Dong Xu Wang, 2013/08/13
- [Qemu-devel] [PATCH V18 05/25] qemu-option: opt->str store digit, without suffixes, Dong Xu Wang, 2013/08/13
- [Qemu-devel] [PATCH V18 06/25] add interface to block, Dong Xu Wang, 2013/08/13
- [Qemu-devel] [PATCH V18 07/25] block: add QemuOpts support for cow.c, Dong Xu Wang, 2013/08/13