From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3Zxd-00053a-JX for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:43:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3Zxa-00051U-0J for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:43:01 -0400 Received: from [199.232.76.173] (port=39780 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3ZxZ-00051B-Cc for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32355) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3ZxY-0008Q9-TL for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:57 -0400 From: Luiz Capitulino Date: Thu, 29 Oct 2009 16:42:30 -0200 Message-Id: <1256841750-15228-8-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1256841750-15228-1-git-send-email-lcapitulino@redhat.com> References: <1256841750-15228-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 7/7] monitor: do_info_balloon(): use QError List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, aliguori@us.ibm.com, kraxel@redhat.com, hollisb@us.ibm.com Signed-off-by: Luiz Capitulino --- monitor.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/monitor.c b/monitor.c index 4d56b8e..4cec447 100644 --- a/monitor.c +++ b/monitor.c @@ -1717,10 +1717,9 @@ static void do_info_balloon(Monitor *mon, QObject **ret_data) actual = qemu_balloon_status(); if (kvm_enabled() && !kvm_has_sync_mmu()) - monitor_printf(mon, "Using KVM without synchronous MMU, " - "ballooning disabled\n"); + qemu_error_structed(QERR_BAL_MMU, NULL); else if (actual == 0) - monitor_printf(mon, "Ballooning not activated in VM\n"); + qemu_error_structed(QERR_BAL_DIS, NULL); else *ret_data = QOBJECT(qint_from_int((int)(actual >> 20))); } -- 1.6.5.2.74.g610f9