]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: don't printf to stdout on ZEBRA_IPV6_NEXTHOP_LOOKUP
authorChristian Franke <chris@opensourcerouting.org>
Thu, 11 Apr 2013 08:24:29 +0000 (08:24 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 31 Jul 2013 15:58:05 +0000 (17:58 +0200)
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/zserv.c

index cb8dbcb3a6daaa5275ed947a0737e4e5035f6cea..8aaaea6f1310f673e807eb49162dbad089890d69 100644 (file)
@@ -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);
 }