aboutsummaryrefslogtreecommitdiff
path: root/src/util/mq.c
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2017-12-30 20:39:39 +0100
committerlurchi <lurchi@strangeplace.net>2017-12-30 20:43:11 +0100
commit8412625bb5191040389610364167c768bb55efb4 (patch)
tree212e8744bbafaabc96b272f809e6b9c47dea287a /src/util/mq.c
parent1d6a686ccc73ce02fd6e22decb82425012a82a04 (diff)
Revert "tried to print out stacktrace, not working. removed."
This reverts commit 1522bb78401dd739299cc507e7237df32f239a3f.
Diffstat (limited to 'src/util/mq.c')
-rw-r--r--src/util/mq.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index 3c1fba1491..8d71359ac4 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -28,30 +28,6 @@
#define LOG(kind,...) GNUNET_log_from (kind, "util-mq",__VA_ARGS__)
-//#if HAVE_EXECINFO_H
-//#include "execinfo.h"
-
-///**
-// * Use lsof to generate file descriptor reports on select error?
-// * (turn off for stable releases).
-// */
-//#define USE_LSOF GNUNET_NO
-
-///**
-// * Obtain trace information for all scheduler calls that schedule tasks.
-// */
-//#define EXECINFO GNUNET_NO
-
-///**
-// * Check each file descriptor before adding
-// */
-//#define DEBUG_FDS GNUNET_NO
-
-///**
-// * Depth of the traces collected via EXECINFO.
-// */
-//#define MAX_TRACE_DEPTH 50
-//#endif
struct GNUNET_MQ_Envelope
{
@@ -888,18 +864,6 @@ GNUNET_MQ_destroy (struct GNUNET_MQ_Handle *mq)
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"MQ destroy drops current message of type %u\n",
ntohs (mq->current_envelope->mh->type));
-//#if EXECINFO
-// void *backtrace_array[MAX_TRACE_DEPTH];
-// int num_backtrace_strings = backtrace (backtrace_array, MAX_TRACE_DEPTH);
-// char **backtrace_strings =
-// backtrace_symbols (backtrace_array,
-// t->num_backtrace_strings);
-// for (unsigned int i = 0; i < num_backtrace_strings; i++)
-// LOG (GNUNET_ERROR_TYPE_DEBUG,
-// "client drop trace %u: %s\n",
-// i,
-// backtrace_strings[i]);
-//#endif
GNUNET_MQ_discard (mq->current_envelope);
mq->current_envelope = NULL;
GNUNET_assert (0 < mq->queue_length);