From e67905426bf3cf811d31c87789c1c7e986849d66 Mon Sep 17 00:00:00 2001 From: Chunyan Liu Date: Thu, 5 Jun 2014 17:20:41 +0800 Subject: QemuOpts: repurpose qemu_opts_print to replace print_option_parameters Currently this function is not used anywhere. In later patches, it will replace print_option_parameters. To avoid print info changes, change qemu_opts_print from fprintf stderr to printf, and remove last printf. Signed-off-by: Chunyan Liu Reviewed-by: Eric Blake Signed-off-by: Stefan Hajnoczi --- util/qemu-option.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'util') diff --git a/util/qemu-option.c b/util/qemu-option.c index c188c5c..2c46791 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -895,17 +895,15 @@ void qemu_opts_del(QemuOpts *opts) g_free(opts); } -int qemu_opts_print(QemuOpts *opts, void *dummy) +void qemu_opts_print(QemuOpts *opts) { QemuOpt *opt; - fprintf(stderr, "%s: %s:", opts->list->name, - opts->id ? opts->id : ""); + printf("%s: %s:", opts->list->name, + opts->id ? opts->id : ""); QTAILQ_FOREACH(opt, &opts->head, next) { - fprintf(stderr, " %s=\"%s\"", opt->name, opt->str); + printf(" %s=\"%s\"", opt->name, opt->str); } - fprintf(stderr, "\n"); - return 0; } static int opts_do_parse(QemuOpts *opts, const char *params, -- cgit v1.1