aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2012-08-25 19:05:56 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-10-29 04:42:43 -0400
commit60c39c7584e1bb69cdce4e0a9ee1e78ba09c82b9 (patch)
tree50700fa886f2c8a8846f43e233af64412c725f89 /net/batman-adv
parentfdf7932052209260ca2e7add4da4b74f57976336 (diff)
batman-adv: print packets re-routing on DBG_TT and ratelimit it
To simplify TranslationTable debugging it is better to print the packet rerouting message on the DBG_TT log level. In this way a developer interested in packets rerouting doesn't need to filter it out of the whole ROUTES log. Moreover, since this message will appear for each rerouted message, it is now "ratelimited". Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/routing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index 1ac072d7409e..456a0a9f8831 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -965,10 +965,10 @@ static int batadv_check_unicast_ttvn(struct batadv_priv *bat_priv,
965 batadv_orig_node_free_ref(orig_node); 965 batadv_orig_node_free_ref(orig_node);
966 } 966 }
967 967
968 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, 968 net_ratelimited_function(batadv_dbg, BATADV_DBG_TT, bat_priv,
969 "TTVN mismatch (old_ttvn %u new_ttvn %u)! Rerouting unicast packet (for %pM) to %pM\n", 969 "TTVN mismatch (old_ttvn %u new_ttvn %u)! Rerouting unicast packet (for %pM) to %pM\n",
970 unicast_packet->ttvn, curr_ttvn, ethhdr->h_dest, 970 unicast_packet->ttvn, curr_ttvn,
971 unicast_packet->dest); 971 ethhdr->h_dest, unicast_packet->dest);
972 972
973 unicast_packet->ttvn = curr_ttvn; 973 unicast_packet->ttvn = curr_ttvn;
974 } 974 }