]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: monitor: Fix formatting of 'offset' in qemuMonitorJSONSaveMemory
authorPeter Krempa <pkrempa@redhat.com>
Fri, 30 Aug 2019 14:37:46 +0000 (16:37 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Sep 2019 07:13:49 +0000 (09:13 +0200)
The offset is unsigned long long thus 'U' must be used.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor_json.c

index da1e89ddeda1dcaa43e4c7f5a7ea822fc0fea454..e4404f01993b77dfe740a75f7133bff54887a23f 100644 (file)
@@ -3123,7 +3123,7 @@ static int qemuMonitorJSONSaveMemory(qemuMonitorPtr mon,
     int ret = -1;
     virJSONValuePtr cmd = qemuMonitorJSONMakeCommand(cmdtype,
                                                      "U:val", offset,
-                                                     "u:size", length,
+                                                     "U:size", length,
                                                      "s:filename", path,
                                                      NULL);
     virJSONValuePtr reply = NULL;