diff options
author | Matthieu Boutier <boutier@pps.jussieu.fr> | 2012-01-17 22:46:21 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-25 18:06:52 +0200 |
commit | 4eedea551290906fc76f3a0c908ae759e78bb68a (patch) | |
tree | dcc0782b8ffe445f3a75839b99eabc50194442ef /babeld/route.c | |
parent | babeld: implement "show babel interface" command (diff) | |
download | frr-4eedea551290906fc76f3a0c908ae759e78bb68a.tar.xz frr-4eedea551290906fc76f3a0c908ae759e78bb68a.zip |
babeld: change fprintf(stderr) in term of zlog_err.
Diffstat (limited to 'babeld/route.c')
-rw-r--r-- | babeld/route.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/babeld/route.c b/babeld/route.c index aa181be70..aadf80f27 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; } |