mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
qobject: Make qobject_to_json_pretty() take a pretty argument
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20201211171152.146877-4-armbru@redhat.com>
This commit is contained in:
parent
20076f4a8c
commit
6589f45991
6 changed files with 19 additions and 25 deletions
|
@ -633,7 +633,7 @@ static void dump_json_image_check(ImageCheck *check, bool quiet)
|
|||
|
||||
visit_type_ImageCheck(v, NULL, &check, &error_abort);
|
||||
visit_complete(v, &obj);
|
||||
str = qobject_to_json_pretty(obj);
|
||||
str = qobject_to_json_pretty(obj, true);
|
||||
assert(str != NULL);
|
||||
qprintf(quiet, "%s\n", qstring_get_str(str));
|
||||
qobject_unref(obj);
|
||||
|
@ -2795,7 +2795,7 @@ static void dump_json_image_info_list(ImageInfoList *list)
|
|||
|
||||
visit_type_ImageInfoList(v, NULL, &list, &error_abort);
|
||||
visit_complete(v, &obj);
|
||||
str = qobject_to_json_pretty(obj);
|
||||
str = qobject_to_json_pretty(obj, true);
|
||||
assert(str != NULL);
|
||||
printf("%s\n", qstring_get_str(str));
|
||||
qobject_unref(obj);
|
||||
|
@ -2811,7 +2811,7 @@ static void dump_json_image_info(ImageInfo *info)
|
|||
|
||||
visit_type_ImageInfo(v, NULL, &info, &error_abort);
|
||||
visit_complete(v, &obj);
|
||||
str = qobject_to_json_pretty(obj);
|
||||
str = qobject_to_json_pretty(obj, true);
|
||||
assert(str != NULL);
|
||||
printf("%s\n", qstring_get_str(str));
|
||||
qobject_unref(obj);
|
||||
|
@ -5242,7 +5242,7 @@ static void dump_json_block_measure_info(BlockMeasureInfo *info)
|
|||
|
||||
visit_type_BlockMeasureInfo(v, NULL, &info, &error_abort);
|
||||
visit_complete(v, &obj);
|
||||
str = qobject_to_json_pretty(obj);
|
||||
str = qobject_to_json_pretty(obj, true);
|
||||
assert(str != NULL);
|
||||
printf("%s\n", qstring_get_str(str));
|
||||
qobject_unref(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue