zebra: don't printf to stdout on ZEBRA_IPV6_NEXTHOP_LOOKUP
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
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 @@
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);
}