diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-12-11 18:11:35 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-12-19 10:38:43 +0100 |
commit | 6589f4599151201a61d6b1be8450adb63ae81017 (patch) | |
tree | 2f9cb1fb248871d6672fe788bec6bb5da1339f5c /monitor/qmp.c | |
parent | 20076f4a8c3b275272d0b907f37c126bd91ec1b9 (diff) | |
download | qemu-6589f4599151201a61d6b1be8450adb63ae81017.zip qemu-6589f4599151201a61d6b1be8450adb63ae81017.tar.gz qemu-6589f4599151201a61d6b1be8450adb63ae81017.tar.bz2 |
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>
Diffstat (limited to 'monitor/qmp.c')
-rw-r--r-- | monitor/qmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/qmp.c b/monitor/qmp.c index b42f8c6..1197c50 100644 --- a/monitor/qmp.c +++ b/monitor/qmp.c @@ -112,7 +112,7 @@ void qmp_send_response(MonitorQMP *mon, const QDict *rsp) const QObject *data = QOBJECT(rsp); QString *json; - json = mon->pretty ? qobject_to_json_pretty(data) : qobject_to_json(data); + json = qobject_to_json_pretty(data, mon->pretty); assert(json != NULL); qstring_append_chr(json, '\n'); |