Ver código fonte

batman-adv: tt_global_del_orig() has to print the correct message

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>
Antonio Quartulli 13 anos atrás
pai
commit
87944973d9
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      net/batman-adv/translation-table.c

+ 3 - 2
net/batman-adv/translation-table.c

@@ -735,9 +735,10 @@ void tt_global_del_orig(struct bat_priv *bat_priv,
 			if (tt_global_entry->orig_node == orig_node) {
 			if (tt_global_entry->orig_node == orig_node) {
 				bat_dbg(DBG_TT, bat_priv,
 				bat_dbg(DBG_TT, bat_priv,
 					"Deleting global tt entry %pM "
 					"Deleting global tt entry %pM "
-					"(via %pM): originator time out\n",
+					"(via %pM): %s\n",
 					tt_global_entry->addr,
 					tt_global_entry->addr,
-					tt_global_entry->orig_node->orig);
+					tt_global_entry->orig_node->orig,
+					message);
 				hlist_del_rcu(node);
 				hlist_del_rcu(node);
 				tt_global_entry_free_ref(tt_global_entry);
 				tt_global_entry_free_ref(tt_global_entry);
 			}
 			}