From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKRui-0007BS-Gd for qemu-devel@nongnu.org; Fri, 13 Sep 2013 07:51:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKRuc-0001YE-DA for qemu-devel@nongnu.org; Fri, 13 Sep 2013 07:51:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKRuc-0001Xu-5r for qemu-devel@nongnu.org; Fri, 13 Sep 2013 07:51:46 -0400 From: Kevin Wolf Date: Fri, 13 Sep 2013 13:51:00 +0200 Message-Id: <1379073063-14963-31-git-send-email-kwolf@redhat.com> In-Reply-To: <1379073063-14963-1-git-send-email-kwolf@redhat.com> References: <1379073063-14963-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PULL 30/33] qemu-img: fix invalid JSON List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Paolo Bonzini 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 --- qemu-img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-img.c b/qemu-img.c index 6a1ba69..926f0a0 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('}'); -- 1.8.1.4