mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
chardev: Properly initialize ChardevCommon components
Commit d0d7708b
forgot to parse logging for spice chardevs and
virtual consoles. This requires making qemu_chr_parse_common()
non-static. While at it, use a temporary variable to make the
code shorter, as well as reduce the churn when a later patch
alters the layout of simple unions.
Signed-off-by: Eric Blake <eblake@redhat.com>
CC: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1455927587-28033-2-git-send-email-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d61524486c
commit
21a933ea33
4 changed files with 30 additions and 14 deletions
|
@ -3490,7 +3490,7 @@ fail:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static void qemu_chr_parse_common(QemuOpts *opts, ChardevCommon *backend)
|
||||
void qemu_chr_parse_common(QemuOpts *opts, ChardevCommon *backend)
|
||||
{
|
||||
const char *logfile = qemu_opt_get(opts, "logfile");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue