[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v23 11/32] qemu_opts_print: change fprintf stder
From: |
Leandro Dorileo |
Subject: |
Re: [Qemu-devel] [PATCH v23 11/32] qemu_opts_print: change fprintf stderr to printf |
Date: |
Tue, 25 Mar 2014 20:10:57 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Fri, Mar 21, 2014 at 06:12:22PM +0800, Chunyan Liu wrote:
> Currently this function is not used anywhere. In later patches, it will
> replace print_option_parameters. print_option_parameters uses printf,
> to avoid print info changes after switching to QemuOpts, change
> qemu_opts_print from fprintf stderr to printf to keep consistent.
>
> Signed-off-by: Chunyan Liu <address@hidden>
> ---
> util/qemu-option.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/util/qemu-option.c b/util/qemu-option.c
> index e9802f3..a9c53cd 100644
> --- a/util/qemu-option.c
> +++ b/util/qemu-option.c
> @@ -1012,7 +1012,7 @@ void qemu_opts_print(QemuOpts *opts)
>
> if (desc[0].name == NULL) {
> QTAILQ_FOREACH(opt, &opts->head, next) {
> - fprintf(stderr, "%s=\"%s\" ", opt->name, opt->str);
> + printf("%s=\"%s\" ", opt->name, opt->str);
> }
> return;
> }
> @@ -1025,12 +1025,12 @@ void qemu_opts_print(QemuOpts *opts)
> continue;
> }
> if (desc->type == QEMU_OPT_STRING) {
> - fprintf(stderr, "%s='%s' ", desc->name, value);
> + printf("%s='%s' ", desc->name, value);
> } else {
> - fprintf(stderr, "%s=%s ", desc->name, value);
> + printf("%s=%s ", desc->name, value);
> }
> }
> - fprintf(stderr, "\n");
> + printf("\n");
This new line is breaking most of the io tests since it changes
the expected output.
Regards...
--
Leandro Dorileo
> }
>
> static int opts_do_parse(QemuOpts *opts, const char *params,
> --
> 1.7.12.4
>
>
- [Qemu-devel] [PATCH v23 04/32] change opt->name and opt->str from (const char *) to (char *), (continued)
- [Qemu-devel] [PATCH v23 04/32] change opt->name and opt->str from (const char *) to (char *), Chunyan Liu, 2014/03/21
- [Qemu-devel] [PATCH v23 08/32] add convert functions between QEMUOptionParameter to QemuOpts, Chunyan Liu, 2014/03/21
- [Qemu-devel] [PATCH v23 10/32] check NULL input for qemu_opts_del, Chunyan Liu, 2014/03/21
- [Qemu-devel] [PATCH v23 11/32] qemu_opts_print: change fprintf stderr to printf, Chunyan Liu, 2014/03/21
- Re: [Qemu-devel] [PATCH v23 11/32] qemu_opts_print: change fprintf stderr to printf,
Leandro Dorileo <=
- [Qemu-devel] [PATCH v23 12/32] qcow2.c: remove 'assigned' check in amend, Chunyan Liu, 2014/03/21
- [Qemu-devel] [PATCH v23 14/32] vvfat.c: handle cross_driver's create_options and create_opts, Chunyan Liu, 2014/03/21
- [Qemu-devel] [PATCH v23 13/32] change block layer to support both QemuOpts and QEMUOptionParamter, Chunyan Liu, 2014/03/21
- [Qemu-devel] [PATCH v23 09/32] add qemu_opts_append to repalce append_option_parameters, Chunyan Liu, 2014/03/21