From patchwork Thu Jan 19 15:56:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 136869 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 14A681007D3 for ; Fri, 20 Jan 2012 03:49:36 +1100 (EST) Received: from localhost ([::1]:41608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnuV0-00020s-0x for incoming@patchwork.ozlabs.org; Thu, 19 Jan 2012 11:06:02 -0500 Received: from eggs.gnu.org ([140.186.70.92]:48712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnuUX-0000xg-IN for qemu-devel@nongnu.org; Thu, 19 Jan 2012 11:05:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnuLx-0007vy-7P for qemu-devel@nongnu.org; Thu, 19 Jan 2012 10:56:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnuLw-0007vg-UB for qemu-devel@nongnu.org; Thu, 19 Jan 2012 10:56:41 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0JFucuo020822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Jan 2012 10:56:39 -0500 Received: from localhost (ovpn-116-68.ams2.redhat.com [10.36.116.68]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0JFuavA001642; Thu, 19 Jan 2012 10:56:38 -0500 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Thu, 19 Jan 2012 13:56:27 -0200 Message-Id: <1326988591-27241-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1326988591-27241-1-git-send-email-lcapitulino@redhat.com> References: <1326988591-27241-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: aliguori@us.ibm.com, armbru@redhat.com, mdroth@linux.vnet.ibm.com, agl@us.ibm.com, amit.shah@redhat.com, eblake@redhat.com Subject: [Qemu-devel] [PATCH 1/5] balloon: qmp_balloon(): Use error_set() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Commit d72f326431e280a619a0fd55e27d3737747f8178 converted the balloon command to the QAPI, but forgot to convert one qerror_report() usage. Fix it. Signed-off-by: Luiz Capitulino --- balloon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/balloon.c b/balloon.c index 0166744..aa354f7 100644 --- a/balloon.c +++ b/balloon.c @@ -108,7 +108,7 @@ void qmp_balloon(int64_t value, Error **errp) } if (value <= 0) { - qerror_report(QERR_INVALID_PARAMETER_VALUE, "target", "a size"); + error_set(errp, QERR_INVALID_PARAMETER_VALUE, "target", "a size"); return; }