From patchwork Fri Dec 18 15:25:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 41408 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 138BC1007D1 for ; Sat, 19 Dec 2009 02:31:06 +1100 (EST) Received: from localhost ([127.0.0.1]:53219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLenE-0003CR-5E for incoming@patchwork.ozlabs.org; Fri, 18 Dec 2009 10:31:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLehp-00013L-VX for qemu-devel@nongnu.org; Fri, 18 Dec 2009 10:25:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLehk-0000yP-Is for qemu-devel@nongnu.org; Fri, 18 Dec 2009 10:25:25 -0500 Received: from [199.232.76.173] (port=57995 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLehk-0000y5-CA for qemu-devel@nongnu.org; Fri, 18 Dec 2009 10:25:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28865) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLehk-0006GW-1d for qemu-devel@nongnu.org; Fri, 18 Dec 2009 10:25:20 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBIFPJnV021511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 18 Dec 2009 10:25:19 -0500 Received: from localhost (vpn-10-146.rdu.redhat.com [10.11.10.146]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBIFPHg6004895; Fri, 18 Dec 2009 10:25:18 -0500 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Fri, 18 Dec 2009 13:25:01 -0200 Message-Id: <1261149905-7622-4-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1261149905-7622-1-git-send-email-lcapitulino@redhat.com> References: <1261149905-7622-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 3/7] QMP: Assure that returned data is a QDict X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This is for debug purposes only. Signed-off-by: Luiz Capitulino --- monitor.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index d238660..8ef1582 100644 --- a/monitor.c +++ b/monitor.c @@ -283,6 +283,7 @@ static void monitor_protocol_emitter(Monitor *mon, QObject *data) if (!monitor_has_error(mon)) { /* success response */ if (data) { + assert(qobject_type(data) == QTYPE_QDICT); qobject_incref(data); qdict_put_obj(qmp, "return", data); } else {