[libvirt] [PATCH] Fix qemu command flags fetching

Cole Robinson crobinso at redhat.com
Mon Jun 15 22:11:03 UTC 2009


New function qemudParseHelpStr was being called with arguments in the
wrong order, so command flags == kvm_version :/

Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 src/qemu_conf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/qemu_conf.c b/src/qemu_conf.c
index 22f315c..a669c11 100644
--- a/src/qemu_conf.c
+++ b/src/qemu_conf.c
@@ -597,7 +597,7 @@ int qemudExtractVersionInfo(const char *qemu,
         goto cleanup2;
     }
 
-    if (qemudParseHelpStr(help, &version, &kvm_version, &is_kvm, &flags) == -1)
+    if (qemudParseHelpStr(help, &flags, &version, &is_kvm, &kvm_version) == -1)
         goto cleanup2;
 
     if (retversion)
-- 
1.6.0.6




More information about the libvir-list mailing list