From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcbAV-000104-Gx for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:14:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcbAK-0002NP-96 for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:14:07 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:57879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcbAJ-0002N8-Ve for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:13:56 -0500 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Dec 2011 11:13:55 -0000 Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBJBDrG41785858 for ; Mon, 19 Dec 2011 11:13:53 GMT Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBJBDqhK029757 for ; Mon, 19 Dec 2011 04:13:53 -0700 From: Stefan Hajnoczi Date: Mon, 19 Dec 2011 11:12:26 +0000 Message-Id: <1324293158-25433-6-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1324293158-25433-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1324293158-25433-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 05/17] slirp: Fix typo in net_slirp_hostfwd_remove List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Stefan Hajnoczi , Geoffrey Thomas From: Geoffrey Thomas Report an error when err is nonzero, not when it is zero. Signed-off-by: Geoffrey Thomas Signed-off-by: Stefan Hajnoczi --- net/slirp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/slirp.c b/net/slirp.c index 6646ecb..18e07ba 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -351,7 +351,7 @@ void net_slirp_hostfwd_remove(Monitor *mon, const QDict *qdict) host_addr, host_port); monitor_printf(mon, "host forwarding rule for %s %s\n", src_str, - err ? "removed" : "not found"); + err ? "not found" : "removed"); return; fail_syntax: -- 1.7.7.3