Fix compilations warnings and remove printf debugs

This commit is contained in:
Ismael Gomez 2018-02-09 17:36:44 +01:00
parent fdc7a0d334
commit 86818ad65f
4 changed files with 11 additions and 5 deletions

View File

@ -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);
}

View File

@ -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;

View File

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

View File

@ -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;