From: Geoffrey Thomas Date: Sat, 17 Dec 2011 09:23:59 +0000 (-0500) Subject: slirp: Fix typo in net_slirp_hostfwd_remove X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b15ba6c95147e62671b29580c3b9056773cc496e;p=qemu-xen-4.3-testing.git slirp: Fix typo in net_slirp_hostfwd_remove Report an error when err is nonzero, not when it is zero. Signed-off-by: Geoffrey Thomas Signed-off-by: Stefan Hajnoczi --- diff --git a/net/slirp.c b/net/slirp.c index 6646ecb1c..18e07ba60 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: