Fix compilations warnings and remove printf debugs

master
Ismael Gomez 7 years ago
parent fdc7a0d334
commit 86818ad65f

@ -52,6 +52,9 @@
class thread class thread
{ {
public: public:
thread() {
_thread = 0;
}
bool start(int prio = -1) { bool start(int prio = -1) {
return threads_new_rt_prio(&_thread, thread_function_entry, this, prio); return threads_new_rt_prio(&_thread, thread_function_entry, this, prio);
} }

@ -147,7 +147,7 @@ typedef struct {
int main(int argc, char **argv) { int main(int argc, char **argv) {
srslte_pdcch_t pdcch_tx, pdcch_rx; 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_ra_dl_dci_t ra_dl;
srslte_regs_t regs; srslte_regs_t regs;
int i, j, k; int i, j, k;
@ -156,6 +156,8 @@ int main(int argc, char **argv) {
cf_t *tx_slot_symbols[SRSLTE_MAX_PORTS], *rx_slot_symbols[SRSLTE_MAX_PORTS]; 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; int ret = -1;
parse_args(argc, argv); parse_args(argc, argv);

@ -141,6 +141,7 @@ public:
rlc_am_tester(rlc_interface_pdcp *rlc_){ rlc_am_tester(rlc_interface_pdcp *rlc_){
rlc = rlc_; rlc = rlc_;
run_enable = true; run_enable = true;
running = false;
} }
void stop() void stop()

@ -630,7 +630,7 @@ int sched::dl_sched_rar(dl_sched_rar_t rar[MAX_RAR_LIST])
} }
} else { } 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 { } else {
log_h->console("SCHED: Could not transmit RAR within the window (RA TTI=%d, Window=%d, Now=%d)\n", 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)) aggr_level))
{ {
h->reset(0); 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); rnti, h->get_id(), aggr_level, sf_idx);
sched_result->pusch[nof_dci_elems].needs_pdcch = false; sched_result->pusch[nof_dci_elems].needs_pdcch = false;

Loading…
Cancel
Save