summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2012-10-15 06:46:23 -0700
committerAndrea Shepard <andrea@torproject.org>2012-10-15 06:46:23 -0700
commit3894ca15080e48bc025333df494ab211168c94da (patch)
tree0de05226759194d90dbb53140649376b83835235
parent9ef286ec8f10f88a5b30f48efd502b9c87933762 (diff)
downloadtor-3894ca15080e48bc025333df494ab211168c94da.tar.gz
tor-3894ca15080e48bc025333df494ab211168c94da.zip
Add debug logging for channel_free() and channel_force_free()
-rw-r--r--src/or/channel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index 56e15b48b8..2642431267 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -808,6 +808,10 @@ channel_free(channel_t *chan)
/* It must be deregistered */
tor_assert(!(chan->registered));
+ log_debug(LD_CHANNEL,
+ "Freeing channel " U64_FORMAT " at %p",
+ U64_PRINTF_ARG(chan->global_identifier), chan);
+
/*
* Get rid of cmux policy before we do anything, so cmux policies don't
* see channels in weird half-freed states.
@@ -872,6 +876,10 @@ channel_force_free(channel_t *chan)
{
tor_assert(chan);
+ log_debug(LD_CHANNEL,
+ "Force-freeing channel " U64_FORMAT " at %p",
+ U64_PRINTF_ARG(chan->global_identifier), chan);
+
/*
* Get rid of cmux policy before we do anything, so cmux policies don't
* see channels in weird half-freed states.