From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjSPO-000061-NC for qemu-devel@nongnu.org; Wed, 20 Jul 2011 04:45:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjSPM-0004yX-Mx for qemu-devel@nongnu.org; Wed, 20 Jul 2011 04:45:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjSPM-0004yL-4q for qemu-devel@nongnu.org; Wed, 20 Jul 2011 04:45:32 -0400 From: Amit Shah Date: Wed, 20 Jul 2011 14:15:12 +0530 Message-Id: In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 2/7] balloon: Add braces around if statements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Amit Shah , Markus Armbruster Signed-off-by: Amit Shah --- balloon.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/balloon.c b/balloon.c index f9bcf07..86f629e 100644 --- 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); -- 1.7.6