diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-06-27 16:22:07 +0200 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-08-14 09:58:36 -0500 |
commit | 4f8dca733363650aaab2d8d9488a3c5e1fa829cd (patch) | |
tree | b62dde1c8cc966930808132a99e7bf0e74088922 | |
parent | 88cc6975fe05de59bf3417a2226273ad257dc71a (diff) |
qemu-char: Fix ringbuf option size
Any attempt to use it trips an "opt->desc->type == QEMU_OPT_NUMBER"
assertion. Broken in commit 1da48c65.
Cc: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
(cherry picked from commit 0f953051178f2e3df36efa5158a71f33d35fa812)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-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 3cdf075009..ad9408e6e4 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3162,7 +3162,7 @@ static void qemu_chr_parse_ringbuf(QemuOpts *opts, ChardevBackend *backend, backend->ringbuf = g_new0(ChardevRingbuf, 1); - val = qemu_opt_get_number(opts, "size", 0); + val = qemu_opt_get_size(opts, "size", 0); if (val != 0) { backend->ringbuf->has_size = true; backend->ringbuf->size = val; |