[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/9] qemu-config: fix -writeconfig when using qemu_o
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 1/9] qemu-config: fix -writeconfig when using qemu_opt_set_bool |
Date: |
Mon, 19 Mar 2012 10:09:15 -0500 |
opts->str is what writeconfig uses so lets make sure it's set.
Signed-off-by: Anthony Liguori <address@hidden>
---
qemu-option.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/qemu-option.c b/qemu-option.c
index 35cd609..b9a6642 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -678,6 +678,7 @@ int qemu_opt_set_bool(QemuOpts *opts, const char *name,
bool val)
opt->desc = desc+i;
}
opt->value.boolean = !!val;
+ opt->str = val ? "on" : "off";
return 0;
}
--
1.7.5.4
- [Qemu-devel] [RFC PATCH 0/9] qemu capabilities reporting and config changes, Anthony Liguori, 2012/03/19
- [Qemu-devel] [PATCH 5/9] vl: enable system configuration to be used, Anthony Liguori, 2012/03/19
- [Qemu-devel] [PATCH 1/9] qemu-config: fix -writeconfig when using qemu_opt_set_bool,
Anthony Liguori <=
- [Qemu-devel] [PATCH 2/9] qemu-config: friends don't let friends use sscanf, Anthony Liguori, 2012/03/19
- [Qemu-devel] [PATCH 4/9] vl: mark system configuration options in qemu-options.hx, Anthony Liguori, 2012/03/19
- [Qemu-devel] [PATCH 3/9] vl: refactor command line parsing to allow options to be set via config, Anthony Liguori, 2012/03/19
- [Qemu-devel] [PATCH 7/9] qmp: expose a command to query capabilities of config parser, Anthony Liguori, 2012/03/19
[Qemu-devel] [PATCH 9/9] Add a management tool writer's guide, Anthony Liguori, 2012/03/19
[Qemu-devel] [PATCH 6/9] vl: parse all options via QemuOpts, Anthony Liguori, 2012/03/19