From: Paolo Bonzini Date: Wed, 11 Sep 2013 16:47:52 +0000 (+0200) Subject: qemu-img: fix invalid JSON X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~524^2~3^2~158^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c745bfb4300206280ce6156b4bafe765f610057c;p=sdk%2Femulator%2Fqemu.git qemu-img: fix invalid JSON Single quotes for JSON are a QMP-ism, use real JSON in qemu-img output. Reported-by: Kevin Wolf Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- diff --git a/qemu-img.c b/qemu-img.c index 6a1ba697c5..926f0a0feb 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -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('}');