diff --git a/lib/include/srslte/common/threads.h b/lib/include/srslte/common/threads.h index e87407870..949ece195 100644 --- a/lib/include/srslte/common/threads.h +++ b/lib/include/srslte/common/threads.h @@ -51,7 +51,10 @@ class thread { -public: +public: + thread() { + _thread = 0; + } bool start(int prio = -1) { return threads_new_rt_prio(&_thread, thread_function_entry, this, prio); } diff --git a/lib/src/phy/phch/test/pdcch_test.c b/lib/src/phy/phch/test/pdcch_test.c index e73a30d0c..93b5c299a 100644 --- a/lib/src/phy/phch/test/pdcch_test.c +++ b/lib/src/phy/phch/test/pdcch_test.c @@ -147,14 +147,16 @@ typedef struct { int main(int argc, char **argv) { srslte_pdcch_t pdcch_tx, pdcch_rx; - testcase_dci_t testcases[10] = {0}; + testcase_dci_t testcases[10] = {}; srslte_ra_dl_dci_t ra_dl; srslte_regs_t regs; int i, j, k; cf_t *ce[SRSLTE_MAX_PORTS][SRSLTE_MAX_PORTS]; int nof_re; cf_t *tx_slot_symbols[SRSLTE_MAX_PORTS], *rx_slot_symbols[SRSLTE_MAX_PORTS]; - int nof_dcis; + int nof_dcis; + + bzero(&testcases, sizeof(testcase_dci_t)*10); int ret = -1; diff --git a/lib/test/upper/rlc_am_stress_test.cc b/lib/test/upper/rlc_am_stress_test.cc index ad1a0c716..d6fb0882d 100644 --- a/lib/test/upper/rlc_am_stress_test.cc +++ b/lib/test/upper/rlc_am_stress_test.cc @@ -141,6 +141,7 @@ public: rlc_am_tester(rlc_interface_pdcp *rlc_){ rlc = rlc_; run_enable = true; + running = false; } void stop() diff --git a/srsenb/src/mac/scheduler.cc b/srsenb/src/mac/scheduler.cc index b7dc63898..1f1a72764 100644 --- a/srsenb/src/mac/scheduler.cc +++ b/srsenb/src/mac/scheduler.cc @@ -630,7 +630,7 @@ int sched::dl_sched_rar(dl_sched_rar_t rar[MAX_RAR_LIST]) } } else { - log_h->console("SCHED: Could not schedule DCI for RAR tti=%d, L=%d\n", pending_rar[i].rar_tti, rar_aggr_level); + log_h->warning("SCHED: Could not schedule DCI for RAR tti=%d, L=%d\n", pending_rar[i].rar_tti, rar_aggr_level); } } else { log_h->console("SCHED: Could not transmit RAR within the window (RA TTI=%d, Window=%d, Now=%d)\n", @@ -861,7 +861,7 @@ int sched::ul_sched(uint32_t tti, srsenb::sched_interface::ul_sched_res_t* sched aggr_level)) { h->reset(0); - printf("SCHED: Could not schedule UL DCI rnti=0x%x, pid=%d, L=%d, sf_idx=%d\n", + log_h->warning("SCHED: Could not schedule UL DCI rnti=0x%x, pid=%d, L=%d, sf_idx=%d\n", rnti, h->get_id(), aggr_level, sf_idx); sched_result->pusch[nof_dci_elems].needs_pdcch = false;