]> git.proxmox.com Git - qemu.git/blobdiff - QMP/qmp-shell
Rename hexdump to avoid FreeBSD libutil conflict
[qemu.git] / QMP / qmp-shell
index 24b665c8c022bf1b870304ccb5ec8699a1c71800..73cb3b6cef4eb2f04e25ed586fc8a675679ace4a 100755 (executable)
@@ -99,9 +99,16 @@ class QMPShell(qmp.QEMUMonitorProtocol):
         for arg in cmdargs[1:]:
             opt = arg.split('=')
             try:
+                if(len(opt) > 2):
+                    opt[1] = '='.join(opt[1:])
                 value = int(opt[1])
             except ValueError:
-                value = opt[1]
+                if opt[1] == 'true':
+                    value = True
+                elif opt[1] == 'false':
+                    value = False
+                else:
+                    value = opt[1]
             qmpcmd['arguments'][opt[0]] = value
         return qmpcmd