mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
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 <cyliu@suse.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
5e89db7641
commit
e67905426b
2 changed files with 5 additions and 7 deletions
|
@ -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 : "<noid>");
|
||||
printf("%s: %s:", opts->list->name,
|
||||
opts->id ? opts->id : "<noid>");
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue