From 32bc0e0ac2643c4be08aebed4aeab4308eec1bc5 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 1 Feb 2018 13:27:54 +0100 Subject: [PATCH] disable buffer pool logging --- lib/include/srslte/common/buffer_pool.h | 2 ++ lib/include/srslte/common/common.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/include/srslte/common/buffer_pool.h b/lib/include/srslte/common/buffer_pool.h index 16d21dce8..81a6025a8 100644 --- a/lib/include/srslte/common/buffer_pool.h +++ b/lib/include/srslte/common/buffer_pool.h @@ -75,9 +75,11 @@ public: void print_all_buffers() { printf("%d buffers in queue\n", (int) used.size()); +#ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED for (uint32_t i=0;idebug_name)?used[i]->debug_name:"Undefined"); } +#endif } bool is_almost_empty() { diff --git a/lib/include/srslte/common/common.h b/lib/include/srslte/common/common.h index ddd558016..41a89fb36 100644 --- a/lib/include/srslte/common/common.h +++ b/lib/include/srslte/common/common.h @@ -63,7 +63,7 @@ #define SRSLTE_MAX_BUFFER_SIZE_BYTES 12756 #define SRSLTE_BUFFER_HEADER_OFFSET 1024 -#define SRSLTE_BUFFER_POOL_LOG_ENABLED +//#define SRSLTE_BUFFER_POOL_LOG_ENABLED #ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED #define pool_allocate (pool->allocate(__FUNCTION__))