From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQzq1-0004JH-4C for qemu-devel@nongnu.org; Thu, 26 Feb 2015 09:54:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQzpu-0008W1-R2 for qemu-devel@nongnu.org; Thu, 26 Feb 2015 09:54:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQzpu-0008Vk-KR for qemu-devel@nongnu.org; Thu, 26 Feb 2015 09:54:46 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1QEsjxO025860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 26 Feb 2015 09:54:46 -0500 From: "Dr. David Alan Gilbert (git)" Date: Thu, 26 Feb 2015 14:54:39 +0000 Message-Id: <1424962481-16439-2-git-send-email-dgilbert@redhat.com> In-Reply-To: <1424962481-16439-1-git-send-email-dgilbert@redhat.com> References: <1424962481-16439-1-git-send-email-dgilbert@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] migrate_incoming: use hmp_handle_error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, armbru@redhat.com, quintela@redhat.com From: "Dr. David Alan Gilbert" Signed-off-by: Dr. David Alan Gilbert --- hmp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hmp.c b/hmp.c index 761e5ef..e713e06 100644 --- a/hmp.c +++ b/hmp.c @@ -1091,11 +1091,7 @@ void hmp_migrate_incoming(Monitor *mon, const QDict *qdict) qmp_migrate_incoming(uri, &err); - if (err) { - monitor_printf(mon, "%s\n", error_get_pretty(err)); - error_free(err); - return; - } + hmp_handle_error(mon, &err); } void hmp_migrate_set_downtime(Monitor *mon, const QDict *qdict) -- 2.1.0