sched,bugfix: fix SI scheduler logging

master
Francisco 4 years ago committed by Francisco Paisana
parent 4b069d9b86
commit e70b8c2472

@ -124,8 +124,8 @@ void bc_sched::alloc_sibs(sf_sched* tti_sched)
} }
} }
if (ret != alloc_result::success) { if (ret != alloc_result::success) {
logger.warning("SCHED: Could not allocate SIB=%d, len=%d. Cause: %s", logger.warning("SCHED: Could not allocate SI message, idx=%d, len=%d. Cause: %s",
sib_idx + 1, sib_idx,
cc_cfg->cfg.sibs[sib_idx].len, cc_cfg->cfg.sibs[sib_idx].len,
to_string(ret)); to_string(ret));
} }

@ -334,17 +334,18 @@ void log_broadcast_allocation(const sched_interface::dl_sched_bc_t& bc,
fmt::format_to(str_buffer, "{}", rbg_range); fmt::format_to(str_buffer, "{}", rbg_range);
if (bc.type == sched_interface::dl_sched_bc_t::bc_type::BCCH) { if (bc.type == sched_interface::dl_sched_bc_t::bc_type::BCCH) {
get_mac_logger().debug("SCHED: SIB%d, cc=%d, rbgs=(%d,%d), dci=(%d,%d), rv=%d, len=%d, period=%d, mcs=%d", get_mac_logger().debug(
bc.index + 1, "SCHED: SI message, cc=%d, idx=%d, rbgs=(%d,%d), dci=(%d,%d), rv=%d, len=%d, period=%d, mcs=%d",
cell_params.enb_cc_idx, bc.index,
rbg_range.start(), cell_params.enb_cc_idx,
rbg_range.stop(), rbg_range.start(),
bc.dci.location.L, rbg_range.stop(),
bc.dci.location.ncce, bc.dci.location.L,
bc.dci.tb[0].rv, bc.dci.location.ncce,
cell_params.cfg.sibs[bc.index].len, bc.dci.tb[0].rv,
cell_params.cfg.sibs[bc.index].period_rf, cell_params.cfg.sibs[bc.index].len,
bc.dci.tb[0].mcs_idx); cell_params.cfg.sibs[bc.index].period_rf,
bc.dci.tb[0].mcs_idx);
} else { } else {
get_mac_logger().info("SCHED: PCH, cc=%d, rbgs=%s, dci=(%d,%d), tbs=%d, mcs=%d", get_mac_logger().info("SCHED: PCH, cc=%d, rbgs=%s, dci=(%d,%d), tbs=%d, mcs=%d",
cell_params.enb_cc_idx, cell_params.enb_cc_idx,

@ -756,7 +756,7 @@ uint32_t rrc::generate_sibs()
if (msg[msg_index].msg.c1().type().value != asn1::rrc::bcch_dl_sch_msg_type_c::c1_c_::types_opts::sib_type1) { if (msg[msg_index].msg.c1().type().value != asn1::rrc::bcch_dl_sch_msg_type_c::c1_c_::types_opts::sib_type1) {
msg_str = msg[msg_index].msg.c1().sys_info().crit_exts.type().to_string(); msg_str = msg[msg_index].msg.c1().sys_info().crit_exts.type().to_string();
} }
fmt::format_to(membuf, "{}, cc={}", msg_str, cc_idx); fmt::format_to(membuf, "{}, cc={}, idx={}", msg_str, cc_idx, msg_index);
log_broadcast_rrc_message(SRSRAN_SIRNTI, *cell_ctxt->sib_buffer.back(), msg[msg_index], srsran::to_c_str(membuf)); log_broadcast_rrc_message(SRSRAN_SIRNTI, *cell_ctxt->sib_buffer.back(), msg[msg_index], srsran::to_c_str(membuf));
} }

@ -264,7 +264,9 @@ int32_t rrc_nr::generate_sibs()
sib_buffer.push_back(std::move(sib)); sib_buffer.push_back(std::move(sib));
// Log SIBs in JSON format // Log SIBs in JSON format
log_rrc_message("SIB payload", Tx, sib_buffer.back().get(), msg[msg_index]); fmt::memory_buffer strbuf;
fmt::format_to(strbuf, "SI message={} payload", msg_index);
log_rrc_message(fmt::to_string(strbuf), Tx, sib_buffer.back().get(), msg[msg_index]);
} }
nof_si_messages = sib_buffer.size() - 1; nof_si_messages = sib_buffer.size() - 1;

Loading…
Cancel
Save