From 49a535b81ad9f5c91d3263253bedde441fe22546 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 9 Mar 2021 13:13:02 +0100 Subject: [PATCH] SRSUE: force printing neighbour cells by default in console trace --- srsue/hdr/metrics_stdout.h | 2 ++ srsue/src/metrics_stdout.cc | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/srsue/hdr/metrics_stdout.h b/srsue/hdr/metrics_stdout.h index b2853ff1d..f792415a4 100644 --- a/srsue/hdr/metrics_stdout.h +++ b/srsue/hdr/metrics_stdout.h @@ -38,6 +38,8 @@ public: void stop(){}; private: + static const bool FORCE_NEIGHBOUR_CELL = true; // Set to true for printing always neighbour cells + std::string float_to_string(float f, int digits); std::string float_to_eng_string(float f, int digits); void print_table(const bool display_neighbours); diff --git a/srsue/src/metrics_stdout.cc b/srsue/src/metrics_stdout.cc index 86a14afb7..d428bf14e 100644 --- a/srsue/src/metrics_stdout.cc +++ b/srsue/src/metrics_stdout.cc @@ -96,11 +96,11 @@ void metrics_stdout::set_metrics(const ue_metrics_t& metrics, const uint32_t per return; } - bool display_neighbours = false; + bool display_neighbours = FORCE_NEIGHBOUR_CELL; if (metrics.phy.nof_active_cc > 1) { - display_neighbours = metrics.stack.rrc.neighbour_cells.size() > metrics.phy.nof_active_cc - 1; + display_neighbours |= metrics.stack.rrc.neighbour_cells.size() > metrics.phy.nof_active_cc - 1; } else { - display_neighbours = metrics.stack.rrc.neighbour_cells.size() > 0; + display_neighbours |= metrics.stack.rrc.neighbour_cells.size() > 0; } // print table header every 10 reports