summaryrefslogtreecommitdiff
path: root/babeld/route.c
diff options
context:
space:
mode:
authorMatthieu Boutier <boutier@pps.jussieu.fr>2012-01-17 22:46:21 +0100
committerPaul Jakma <paul@quagga.net>2012-03-25 17:06:52 +0100
commit4eedea551290906fc76f3a0c908ae759e78bb68a (patch)
treedcc0782b8ffe445f3a75839b99eabc50194442ef /babeld/route.c
parentd4e46e681434e768b870679b998eb1ac7635fdfc (diff)
babeld: change fprintf(stderr) in term of zlog_err.
Diffstat (limited to 'babeld/route.c')
-rw-r--r--babeld/route.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/babeld/route.c b/babeld/route.c
index aa181be7..aadf80f2 100644
--- a/babeld/route.c
+++ b/babeld/route.c
@@ -172,8 +172,8 @@ install_route(struct babel_route *route)
return;
if(!route_feasible(route))
- fprintf(stderr, "WARNING: installing unfeasible route "
- "(this shouldn't happen).");
+ zlog_err("WARNING: installing unfeasible route "
+ "(this shouldn't happen).");
rc = kernel_route(ROUTE_ADD, route->src->prefix, route->src->plen,
route->nexthop,
@@ -224,8 +224,8 @@ switch_routes(struct babel_route *old, struct babel_route *new)
return;
if(!route_feasible(new))
- fprintf(stderr, "WARNING: switching to unfeasible route "
- "(this shouldn't happen).");
+ zlog_err("WARNING: switching to unfeasible route "
+ "(this shouldn't happen).");
rc = kernel_route(ROUTE_MODIFY, old->src->prefix, old->src->plen,
old->nexthop, old->neigh->ifp->ifindex,
@@ -414,8 +414,8 @@ update_route(const unsigned char *router_id,
return NULL; /* I have announced the route */
if(martian_prefix(prefix, plen)) {
- fprintf(stderr, "Rejecting martian route to %s through %s.\n",
- format_prefix(prefix, plen), format_address(router_id));
+ zlog_err("Rejecting martian route to %s through %s.",
+ format_prefix(prefix, plen), format_address(router_id));
return NULL;
}