From 98ac39e617009fda59dda99cc1381ae877eb1b32 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 15 Nov 2019 15:58:45 +0100 Subject: [PATCH] fix compilation when macro SRSLTE_BUFFER_POOL_LOG_ENABLED is enabled --- lib/include/srslte/common/logger.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/include/srslte/common/logger.h b/lib/include/srslte/common/logger.h index 0b5da301b..af90e6f1d 100644 --- a/lib/include/srslte/common/logger.h +++ b/lib/include/srslte/common/logger.h @@ -60,6 +60,9 @@ public: void reset() { msg[0] = '\0'; } char* str() { return msg; } uint32_t get_buffer_size() { return size; } +#ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED + char debug_name[SRSLTE_BUFFER_POOL_LOG_NAME_LEN] = {}; +#endif private: uint32_t size;