nr,gnb,sched: small fixes in sched sib allocation logging

master
Francisco 3 years ago committed by Francisco Paisana
parent aba3ac9ddf
commit 89ca761680

@ -183,7 +183,6 @@ void log_sched_bwp_result(srslog::basic_logger& logger,
"SCHED: SI{}, cc={}, prbs={}, pdsch_slot={}", "SCHED: SI{}, cc={}, prbs={}, pdsch_slot={}",
pdcch.dci.sii == 0 ? "B" : " message", pdcch.dci.sii == 0 ? "B" : " message",
res_grid.cfg->cc, res_grid.cfg->cc,
pdcch.dci.ctx.rnti,
srsran::interval<uint32_t>{start_idx, end_idx}, srsran::interval<uint32_t>{start_idx, end_idx},
pdcch_slot); pdcch_slot);
si_count++; si_count++;
@ -191,9 +190,13 @@ void log_sched_bwp_result(srslog::basic_logger& logger,
} }
if (fmtbuf.size() > 0) { if (fmtbuf.size() > 0) {
if (pdcch.dci.ctx.rnti_type == srsran_rnti_type_si) {
logger.debug("%s", srsran::to_c_str(fmtbuf));
} else {
logger.info("%s", srsran::to_c_str(fmtbuf)); logger.info("%s", srsran::to_c_str(fmtbuf));
} }
} }
}
for (const pdcch_ul_t& pdcch : bwp_slot.dl.phy.pdcch_ul) { for (const pdcch_ul_t& pdcch : bwp_slot.dl.phy.pdcch_ul) {
fmt::memory_buffer fmtbuf; fmt::memory_buffer fmtbuf;
if (pdcch.dci.ctx.rnti_type == srsran_rnti_type_c) { if (pdcch.dci.ctx.rnti_type == srsran_rnti_type_c) {

@ -203,7 +203,7 @@ void si_sched::run_slot(bwp_slot_allocator& bwp_alloc)
si.win_start.clear(); si.win_start.clear();
si.n_tx++; si.n_tx++;
if (si.n == 0) { if (si.n == 0) {
logger.debug("SCHED: Allocated SIB1, len=%d.", si.n, si.len_bytes); logger.debug("SCHED: Allocated SIB1, len=%d.", si.len_bytes);
} else { } else {
logger.debug("SCHED: Allocated SI message idx=%d, len=%d.", si.n, si.len_bytes); logger.debug("SCHED: Allocated SI message idx=%d, len=%d.", si.n, si.len_bytes);
} }

Loading…
Cancel
Save