From: Benjamin Cama Date: Sun, 25 Sep 2011 19:30:26 +0000 (+0200) Subject: Log tunnel # while shutting down MPPP sessions. X-Git-Tag: debian/2.2.1-1fdn3~1^2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/e7d32f2da83c56336e0c2521400e93b56c709699?hp=5694e076d62e1a7eb5c4df55ace3830612631abf Log tunnel # while shutting down MPPP sessions. Signed-off-by: Benjamin Cama --- 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);