From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsVBz-0003wY-Eh for qemu-devel@nongnu.org; Sun, 23 Nov 2014 06:19:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsVBu-0004t0-CP for qemu-devel@nongnu.org; Sun, 23 Nov 2014 06:18:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsVBu-0004sm-5Y for qemu-devel@nongnu.org; Sun, 23 Nov 2014 06:18:54 -0500 Date: Sun, 23 Nov 2014 13:18:43 +0200 From: "Michael S. Tsirkin" Message-ID: <1416741307-32307-15-git-send-email-mst@redhat.com> References: <1416741307-32307-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1416741307-32307-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 14/15] pcie: fix improper use of negative value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Gonglei , Anthony Liguori From: Gonglei Signed-off-by: Gonglei Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index fbba589..1abbbb1 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c @@ -229,7 +229,7 @@ static void pcie_cap_slot_hotplug_common(PCIDevice *hotplug_dev, /* the slot is electromechanically locked. * This error is propagated up to qdev and then to HMP/QMP. */ - error_setg_errno(errp, -EBUSY, "slot is electromechanically locked"); + error_setg_errno(errp, EBUSY, "slot is electromechanically locked"); } } -- MST