qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] slirp: Fix typo in net_slirp_hostfwd_remove
@ 2011-12-17  9:23 Geoffrey Thomas
  2011-12-17 19:52 ` Jan Kiszka
  2011-12-19 10:48 ` Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Geoffrey Thomas @ 2011-12-17  9:23 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

Report an error when err is nonzero, not when it is zero.

Signed-off-by: Geoffrey Thomas <geofft@ldpreload.com>
---
  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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-19 10:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-17  9:23 [Qemu-devel] [PATCH] slirp: Fix typo in net_slirp_hostfwd_remove Geoffrey Thomas
2011-12-17 19:52 ` Jan Kiszka
2011-12-19 10:48 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).