diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-09-11 18:47:52 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-12 13:49:50 +0200 |
commit | c745bfb4300206280ce6156b4bafe765f610057c (patch) | |
tree | efc8037b0160c3a5d7d13d248f9660d838639a39 /qemu-img.c | |
parent | 70c60c089fdc6bf8a79324e492c13e8c08d55942 (diff) | |
download | qemu-c745bfb4300206280ce6156b4bafe765f610057c.zip qemu-c745bfb4300206280ce6156b4bafe765f610057c.tar.gz qemu-c745bfb4300206280ce6156b4bafe765f610057c.tar.bz2 |
qemu-img: fix invalid JSON
Single quotes for JSON are a QMP-ism, use real JSON in
qemu-img output.
Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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('}'); |