qemu-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]