diff options
author | Christian Franke <chris@opensourcerouting.org> | 2013-04-11 08:24:29 +0000 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2013-07-31 17:58:05 +0200 |
commit | a52070899afed55ae44ed6a140ac090cdf07d141 (patch) | |
tree | 7779e6c597ccc4446f6aa239628263c01f2e8a96 /zebra | |
parent | 67e7a2127c05a8c7dfddd7ffc6378edf6b666d55 (diff) |
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>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zserv.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |