projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a2a30d
)
balloon: Add braces around if statements
author
Amit Shah
<amit.shah@redhat.com>
Wed, 20 Jul 2011 07:42:15 +0000
(13:12 +0530)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Thu, 4 Aug 2011 21:43:08 +0000
(16:43 -0500)
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
balloon.c
patch
|
blob
|
history
diff --git
a/balloon.c
b/balloon.c
index f9bcf07b19cde7f4f86bd21b2f5676ad8e310045..86f629e77a8bcb43fa604d9faa7e051f0c706866 100644
(file)
--- a/
balloon.c
+++ b/
balloon.c
@@
-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);