[libvirt] [PATCH 3/3] qemu: monitor: Fix formatting of 'offset' in qemuMonitorJSONSaveMemory

Peter Krempa pkrempa at redhat.com
Fri Aug 30 14:45:05 UTC 2019


The offset is unsigned long long thus 'U' must be used.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/qemu/qemu_monitor_json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index da1e89dded..e4404f0199 100644
--- a/src/qemu/qemu_monitor_json.c
+++ b/src/qemu/qemu_monitor_json.c
@@ -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;
-- 
2.21.0




More information about the libvir-list mailing list