From a52070899afed55ae44ed6a140ac090cdf07d141 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Thu, 11 Apr 2013 08:24:29 +0000 Subject: zebra: don't printf to stdout on ZEBRA_IPV6_NEXTHOP_LOOKUP Signed-off-by: Christian Franke Signed-off-by: David Lamparter --- zebra/zserv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zebra/zserv.c b/zebra/zserv.c index cb8dbcb3..8aaaea6f 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); } -- cgit v1.2.1