From patchwork Mon Sep 19 10:29:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1254 Return-Path: Received: from confino.investici.org (investici.nine.ch [217.150.252.179]) by open-mesh.org (Postfix) with ESMTPS id 4A827600708 for ; Mon, 19 Sep 2011 12:30:03 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [217.150.252.179] (confino [217.150.252.179]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id 83529C8686; Mon, 19 Sep 2011 10:30:02 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 confino.investici.org 83529C8686 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1316428202; bh=SMTIqMtvB7w7WJvB0gE1fAuAUqdoAX0gI0phjwgIBDs=; h=From:To:Cc:Subject:Date:Message-Id; b=k+1wmm1QK6ixpN57boZBKFdsY96RiOQEOdOdk8zv7pZpJdy7cXPw7e27C9YdSRglp f3UbmX6Y5Fmaaox4Xl5ad56m8py1OQurYQmL8XLZHkG6ebzqXFJlw+3+Vz/tFvU0yC 6uOfFW+Ud8rNg2Uc8ydfdbsFdAgyw3KmHPsacP2I= From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Date: Mon, 19 Sep 2011 12:29:19 +0200 Message-Id: <1316428159-31010-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: tt_global_del_orig() has to print the correct message X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2011 10:30:03 -0000 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 --- translation-table.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/translation-table.c b/translation-table.c index cc53f78..7de9960 100644 --- a/translation-table.c +++ b/translation-table.c @@ -720,9 +720,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); }