diff options
author | Eric Blake <eblake@redhat.com> | 2016-02-19 17:19:31 -0700 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:45:58 -0600 |
commit | 74de061d5ff897ec66e1039bf3ede4e71b095f1c (patch) | |
tree | 0d5fe1bde2cf2fb98bcb33c3cba2831b31ae1ad9 /qemu-char.c | |
parent | acf67c6703355270a6ec26fb482ec5852471f43f (diff) | |
download | hqemu-74de061d5ff897ec66e1039bf3ede4e71b095f1c.zip hqemu-74de061d5ff897ec66e1039bf3ede4e71b095f1c.tar.gz |
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>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c index ad11b75..fc8ffda 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -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"); |