[quagga-dev 10405] [PATCH] zebra: don't printf to stdout on ZEBRA_IPV6_NEXTHOP_LOOKUP

Christian Franke chris at opensourcerouting.org
Thu Apr 11 10:24:29 BST 2013


Signed-off-by: Christian Franke <chris at opensourcerouting.org>
---
 zebra/zserv.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/zebra/zserv.c b/zebra/zserv.c
index cb8dbcb..8aaaea6 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -1049,7 +1049,9 @@ zread_ipv6_nexthop_lookup (struct zserv *client, u_short length)
   char buf[BUFSIZ];
 
   stream_get (&addr, client->ibuf, 16);
-  printf ("DEBUG %s\n", inet_ntop (AF_INET6, &addr, buf, BUFSIZ));
+  if (IS_ZEBRA_DEBUG_PACKET && IS_ZEBRA_DEBUG_RECV)
+    zlog_debug("%s: looking up %s", __func__,
+               inet_ntop (AF_INET6, &addr, buf, BUFSIZ));
 
   return zsend_ipv6_nexthop_lookup (client, &addr);
 }
-- 
1.7.10.4





More information about the Quagga-dev mailing list