From e7d32f2da83c56336e0c2521400e93b56c709699 Mon Sep 17 00:00:00 2001 From: Benjamin Cama Date: Sun, 25 Sep 2011 21:30:26 +0200 Subject: [PATCH 1/1] Log tunnel # while shutting down MPPP sessions. Signed-off-by: Benjamin Cama --- l2tpns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/l2tpns.c b/l2tpns.c index b2b0513..2d53ea2 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -1976,11 +1976,11 @@ void sessionshutdown(sessionidt s, char const *reason, int cdn_result, int cdn_e { // This session was part of a bundle bundle[b].num_of_links--; - LOG(3, s, 0, "MPPP: Dropping member link: %d from bundle %d\n",s,b); + LOG(3, s, session[s].tunnel, "MPPP: Dropping member link: %d from bundle %d\n",s,b); if(bundle[b].num_of_links == 0) { bundleclear(b); - LOG(3, s, 0, "MPPP: Kill bundle: %d (No remaing member links)\n",b); + LOG(3, s, session[s].tunnel, "MPPP: Kill bundle: %d (No remaing member links)\n",b); } else { @@ -1997,7 +1997,7 @@ void sessionshutdown(sessionidt s, char const *reason, int cdn_result, int cdn_e break; } bundle[b].members[mem_num] = bundle[b].members[bundle[b].num_of_links]; - LOG(3, s, 0, "MPPP: Adjusted member links array\n"); + LOG(3, s, session[s].tunnel, "MPPP: Adjusted member links array\n"); } } cluster_send_bundle(b); -- 2.20.1