]> git.proxmox.com Git - qemu.git/blobdiff - qemu-img.c
qmp: access the local QemuOptsLists for drive option
[qemu.git] / qemu-img.c
index 6a1ba697c58fa9f7cd12b27ebfad8654dc5b0c08..bf3fb4f8a6555592082ae6366e07a8a200d8d243 100644 (file)
@@ -607,7 +607,7 @@ static int img_check(int argc, char **argv)
         if (output_format == OFORMAT_HUMAN) {
             error_report("This image format does not support checks");
         }
-        ret = 1;
+        ret = 63;
         goto fail;
     }
 
@@ -1839,7 +1839,7 @@ static void dump_map_entry(OutputFormat output_format, MapEntry *e,
                (e->flags & BDRV_BLOCK_ZERO) ? "true" : "false",
                (e->flags & BDRV_BLOCK_DATA) ? "true" : "false");
         if (e->flags & BDRV_BLOCK_OFFSET_VALID) {
-            printf(", 'offset': %"PRId64"", e->offset);
+            printf(", \"offset\": %"PRId64"", e->offset);
         }
         putchar('}');