batman-adv: tt_global_del_orig() has to print the correct message
authorAntonio Quartulli <ordex@autistici.org>
Mon, 19 Sep 2011 10:29:19 +0000 (12:29 +0200)
committerSven Eckelmann <sven@narfation.org>
Sun, 20 Nov 2011 12:08:31 +0000 (13:08 +0100)
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>
net/batman-adv/translation-table.c

index c7aafc7c5ed4854b2a46f6e37b5386ef937fee8e..1db9d96109a1b2f355ee05b0eef1be95182be730 100644 (file)
@@ -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);
                        }