Skip to content

Commit

Permalink
batman-adv: tt_global_del_orig() has to print the correct message
Browse files Browse the repository at this point in the history
When deleting the entries, tt_global_del_orig() has to print the message passed
as argument instead of a static one.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
  • Loading branch information
Antonio Quartulli authored and Sven Eckelmann committed Nov 20, 2011
1 parent c20186b commit 8794497
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,10 @@ void tt_global_del_orig(struct bat_priv *bat_priv,
if (tt_global_entry->orig_node == orig_node) {
bat_dbg(DBG_TT, bat_priv,
"Deleting global tt entry %pM "
"(via %pM): originator time out\n",
"(via %pM): %s\n",
tt_global_entry->addr,
tt_global_entry->orig_node->orig);
tt_global_entry->orig_node->orig,
message);
hlist_del_rcu(node);
tt_global_entry_free_ref(tt_global_entry);
}
Expand Down

0 comments on commit 8794497

Please sign in to comment.