babeld: We do not need to put Warning into our warning messages

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-03-10 10:09:38 -05:00 committed by David Lamparter
parent 6dd43a35f3
commit 5c997d2916
3 changed files with 16 additions and 15 deletions

View File

@ -265,8 +265,7 @@ babel_get_myid(void)
return;
}
flog_err(EC_BABEL_CONFIG,
"Warning: couldn't find router id -- using random value.");
flog_err(EC_BABEL_CONFIG, "Couldn't find router id -- using random value.");
rc = read_random_bytes(myid, 8);
if(rc < 0) {

View File

@ -746,8 +746,7 @@ flushbuf(struct interface *ifp)
if(rc < 0)
flog_err(EC_BABEL_PACKET, "send: %s", safe_strerror(errno));
} else {
flog_err(EC_BABEL_PACKET,
"Warning: bucket full, dropping packet to %s.",
flog_err(EC_BABEL_PACKET, "Bucket full, dropping packet to %s.",
ifp->name);
}
}
@ -1010,7 +1009,7 @@ flush_unicast(int dofree)
safe_strerror(errno));
} else {
flog_err(EC_BABEL_PACKET,
"Warning: bucket full, dropping unicast packet to %s if %s.",
"Bucket full, dropping unicast packet to %s if %s.",
format_address(unicast_neighbour->address),
unicast_neighbour->ifp->name);
}

View File

@ -399,14 +399,16 @@ install_route(struct babel_route *route)
return;
if(!route_feasible(route))
flog_err(EC_BABEL_ROUTE, "WARNING: installing unfeasible route (this shouldn't happen).");
flog_err(EC_BABEL_ROUTE,
"Installing unfeasible route (this shouldn't happen).");
i = find_route_slot(route->src->prefix, route->src->plen, NULL);
assert(i >= 0 && i < route_slots);
if(routes[i] != route && routes[i]->installed) {
flog_err(EC_BABEL_ROUTE,
"WARNING: attempting to install duplicate route (this shouldn't happen).");
flog_err(
EC_BABEL_ROUTE,
"Attempting to install duplicate route (this shouldn't happen).");
return;
}
@ -463,7 +465,8 @@ switch_routes(struct babel_route *old, struct babel_route *new)
return;
if(!route_feasible(new))
flog_err(EC_BABEL_ROUTE, "WARNING: switching to unfeasible route (this shouldn't happen).");
flog_err(EC_BABEL_ROUTE,
"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,