Skip to content

Commit 2ec1247

Browse files
andrepuschmanncodebot
authored andcommitted
cu_cp: only print cells in meas_helper if there are any
1 parent dbf1910 commit 2ec1247

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/cu_cp/cell_meas_manager/cell_meas_manager_helpers.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ using namespace srs_cu_cp;
1818

1919
void srsran::srs_cu_cp::log_cells(const srslog::basic_logger& logger, const cell_meas_manager_cfg& cfg)
2020
{
21-
logger.debug("Configured cells:");
22-
for (const auto& cell : cfg.cells) {
23-
logger.debug(" - {}", cell.second);
21+
if (!cfg.cells.empty()) {
22+
logger.debug("Configured cells:");
23+
for (const auto& cell : cfg.cells) {
24+
logger.debug(" - {}", cell.second);
25+
}
2426
}
2527
}
2628

0 commit comments

Comments
 (0)