diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-07-20 13:12:15 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-04 16:43:08 -0500 |
commit | b80bc1ddb2e5838f8bc86f7cc8a45d16c8d8dcba (patch) | |
tree | 761cecf6f29cc864fdce0ebcd976b7e516315487 | |
parent | 0a2a30d5add5100d0c6cd4b466b227f7d76d19cf (diff) | |
download | qemu-b80bc1ddb2e5838f8bc86f7cc8a45d16c8d8dcba.zip qemu-b80bc1ddb2e5838f8bc86f7cc8a45d16c8d8dcba.tar.gz qemu-b80bc1ddb2e5838f8bc86f7cc8a45d16c8d8dcba.tar.bz2 |
balloon: Add braces around if statements
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | balloon.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -65,9 +65,10 @@ static void print_balloon_stat(const char *key, QObject *obj, void *opaque) { Monitor *mon = opaque; - if (strcmp(key, "actual")) + if (strcmp(key, "actual")) { monitor_printf(mon, ",%s=%" PRId64, key, qint_get_int(qobject_to_qint(obj))); + } } void monitor_print_balloon(Monitor *mon, const QObject *data) @@ -75,9 +76,9 @@ void monitor_print_balloon(Monitor *mon, const QObject *data) QDict *qdict; qdict = qobject_to_qdict(data); - if (!qdict_haskey(qdict, "actual")) + if (!qdict_haskey(qdict, "actual")) { return; - + } monitor_printf(mon, "balloon: actual=%" PRId64, qdict_get_int(qdict, "actual") >> 20); qdict_iter(qdict, print_balloon_stat, mon); |