Skip to content
Snippets Groups Projects
Commit ce6caa1a authored by Matthias Schiffer's avatar Matthias Schiffer Committed by David Bauer
Browse files

gluon-radv-filterd: downgrade frequent messages to DEBUG_MSG

When the network connectivity is bad, routers may not appear in the
translation tables, or there may be no originator with TQ >0. Such
conditions to not warrant spamming the log with error messages.

(cherry picked from commit fcd07de6)
parent bc066b88
No related branches found
No related tags found
No related merge requests found
...@@ -608,12 +608,12 @@ static void update_tqs(void) { ...@@ -608,12 +608,12 @@ static void update_tqs(void) {
foreach(router, G.routers) { foreach(router, G.routers) {
if (router->tq == 0) { if (router->tq == 0) {
if (ether_addr_equal(router->originator, unspec)) if (ether_addr_equal(router->originator, unspec))
fprintf(stderr, DEBUG_MSG(
"Unable to find router " F_MAC " in transtable_{global,local}\n", "Unable to find router " F_MAC " in transtable_{global,local}",
F_MAC_VAR(router->src)); F_MAC_VAR(router->src));
else else
fprintf(stderr, DEBUG_MSG(
"Unable to find TQ for originator " F_MAC " (router " F_MAC ")\n", "Unable to find TQ for originator " F_MAC " (router " F_MAC ")",
F_MAC_VAR(router->originator), F_MAC_VAR(router->originator),
F_MAC_VAR(router->src)); F_MAC_VAR(router->src));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment