From d36ae722d5bd28def0e9be126efadf41d496aa26 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Fri, 22 May 2020 16:29:14 +0100 Subject: [PATCH] added extra debug logs --- srsenb/src/stack/mac/scheduler_ue.cc | 2 +- srsenb/src/stack/rrc/rrc_cell_cfg.cc | 6 ++++++ srsue/src/stack/rrc/rrc_procedures.cc | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/srsenb/src/stack/mac/scheduler_ue.cc b/srsenb/src/stack/mac/scheduler_ue.cc index 8d6950fa1..4a64920a2 100644 --- a/srsenb/src/stack/mac/scheduler_ue.cc +++ b/srsenb/src/stack/mac/scheduler_ue.cc @@ -264,7 +264,7 @@ int sched_ue::set_ack_info(uint32_t tti_rx, uint32_t enb_cc_idx, uint32_t tb_idx std::pair p2 = carriers[p.second].harq_ent.set_ack_info(tti_rx, tb_idx, ack); tbs_acked = p2.second; if (tbs_acked > 0) { - Debug("SCHED: Set ACK=%d for rnti=0x%x, pid=%d, tb=%d, tti=%d\n", ack, rnti, p2.first, tb_idx, tti_rx); + Debug("SCHED: Set DL ACK=%d for rnti=0x%x, pid=%d, tb=%d, tti=%d\n", ack, rnti, p2.first, tb_idx, tti_rx); } else { Warning("SCHED: Received ACK info for unknown TTI=%d\n", tti_rx); } diff --git a/srsenb/src/stack/rrc/rrc_cell_cfg.cc b/srsenb/src/stack/rrc/rrc_cell_cfg.cc index 48f976bb7..25ceb207b 100644 --- a/srsenb/src/stack/rrc/rrc_cell_cfg.cc +++ b/srsenb/src/stack/rrc/rrc_cell_cfg.cc @@ -431,6 +431,8 @@ bool cell_ctxt_dedicated_list::alloc_sr_resources(uint32_t period) sr_res.sr_sched_sf_idx = j_min; sr_res_present = true; + log_h->info("Allocated SR resources in time-freq slot (%d, %d)\n", sr_res.sr_sched_prb_idx, sr_res.sr_sched_sf_idx); + return true; } @@ -446,6 +448,10 @@ bool cell_ctxt_dedicated_list::dealloc_sr_resources() } log_h->info( "Deallocated SR resources for time-frequency slot (%d, %d)\n", sr_res.sr_sched_prb_idx, sr_res.sr_sched_sf_idx); + log_h->debug("Remaining SR allocations for slot (%d, %d): %d\n", + sr_res.sr_sched_prb_idx, + sr_res.sr_sched_sf_idx, + pucch_res->sr_sched.nof_users[sr_res.sr_sched_prb_idx][sr_res.sr_sched_sf_idx]); sr_res_present = false; return true; } diff --git a/srsue/src/stack/rrc/rrc_procedures.cc b/srsue/src/stack/rrc/rrc_procedures.cc index 2d49e0de3..e7527b792 100644 --- a/srsue/src/stack/rrc/rrc_procedures.cc +++ b/srsue/src/stack/rrc/rrc_procedures.cc @@ -1010,6 +1010,7 @@ proc_outcome_t rrc::go_idle_proc::init() srslte::proc_outcome_t rrc::go_idle_proc::react(bool timeout) { rrc_ptr->leave_connected(); + Info("Left connected state\n"); return proc_outcome_t::success; } @@ -1024,6 +1025,7 @@ proc_outcome_t rrc::go_idle_proc::step() // wait for max. 2s for RLC on SRB1 to be flushed if (rrc_ptr->rlc->is_suspended(RB_ID_SRB1) || not rrc_ptr->rlc->has_data(RB_ID_SRB1)) { rrc_ptr->leave_connected(); + Info("Left connected state\n"); return proc_outcome_t::success; } else { Debug("Postponing transition to RRC IDLE (%d ms < %d ms)\n", rlc_flush_timer.time_elapsed(), rlc_flush_timeout);