Commit c745bfb4 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Kevin Wolf
Browse files

qemu-img: fix invalid JSON



Single quotes for JSON are a QMP-ism, use real JSON in
qemu-img output.

Reported-by: default avatarKevin Wolf <kwolf@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 70c60c08
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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('}');