byte_buffer: fix compilation when buffer pool log is enabled

master
Andre Puschmann 4 years ago
parent acf098be92
commit bbea3dd6a1

@ -80,7 +80,7 @@ public:
std::map<std::string, uint32_t> buffer_cnt; std::map<std::string, uint32_t> buffer_cnt;
for (uint32_t i = 0; i < pool.size(); i++) { for (uint32_t i = 0; i < pool.size(); i++) {
if (std::find(free_list.cbegin(), free_list.cend(), pool[i]) == free_list.cend()) { if (std::find(free_list.cbegin(), free_list.cend(), pool[i]) == free_list.cend()) {
buffer_cnt[strlen(used[i]->debug_name) ? pool[i]->debug_name : "Undefined"]++; buffer_cnt[strlen(pool[i]->debug_name) ? pool[i]->debug_name : "Undefined"]++;
} }
} }
std::map<std::string, uint32_t>::iterator it; std::map<std::string, uint32_t>::iterator it;

@ -19,6 +19,7 @@
#include <cstdint> #include <cstdint>
//#define SRSRAN_BUFFER_POOL_LOG_ENABLED //#define SRSRAN_BUFFER_POOL_LOG_ENABLED
#define SRSRAN_BUFFER_POOL_LOG_NAME_LEN 128
namespace srsran { namespace srsran {

Loading…
Cancel
Save