Commit 4d59e74c authored by Luhan Wang's avatar Luhan Wang

add log

parent 15daf2eb
......@@ -126,7 +126,7 @@ void *ric_interface_task(void *args_p)
sem_wait (&ric_send_sem);
#endif
memcpy(ric_send_buf_tmp, ric_send_buf, ric_send_len);
printf ("got ric_send_sem ric_send_buf_tmp addr %p ric_send_buf %p\n", ric_send_buf_tmp, ric_send_buf);
//printf ("got ric_send_sem ric_send_buf_tmp addr %p ric_send_buf %p\n", ric_send_buf_tmp, ric_send_buf);
#ifdef CAP_DATA_LOCAL
{
......@@ -147,7 +147,7 @@ void *ric_interface_task(void *args_p)
}
outputdata = c - '0';
if(outputdata == 0)
printf("~~~~~~~~outputdata is %d, log_cnt %d", outputdata, log_cnt);
printf("~~~~~~~~outputdata is %d, log_cnt %d\n", outputdata, log_cnt);
fclose(input_fd);
}
}
......
......@@ -485,7 +485,7 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB)
AssertFatal(Ptx>0 && Ptx<9,"Ptx %d is not supported\n",Ptx);
AssertFatal(Prx>0 && Prx<9,"Prx %d is not supported\n",Prx);
LOG_I(PHY,"[gNB %d] %s() About to wait for gNB to be configured\n", gNB->Mod_id, __FUNCTION__);
LOG_I(PHY,"[gNB %d] %s() About to wait for gNB to be configured, Ptx %d, Prx %d\n", gNB->Mod_id, __FUNCTION__, Ptx, Prx);
while(gNB->configured == 0) usleep(10000);
......
......@@ -265,7 +265,8 @@ int nr_cap_srs_signal(PHY_VARS_gNB *gNB,
ric_send_buf = ns_srs_cap->dmrsData;
ric_send_len = 273*12*ant_num*N_symb_SRS*4;//for test
sem_post(&ric_send_sem);
LOG_I(PHY,"sem_post(&ric_send_sem) frame %d %d, buf%p, size %d, port %d, ant %d config %d\n\n\n",ric_send_buf,ric_send_len, ns_srs_cap->num_ant_ports, ant_num, ns_srs_cap->config_index);
LOG_I(PHY,"sem_post(&ric_send_sem) frame %d %d, buf%p, size %d, port %d, ant %d config %d\n\n\n",
frame, slot, ric_send_buf,ric_send_len, ns_srs_cap->num_ant_ports, ant_num, ns_srs_cap->config_index);
g_dmrs_cnt++;
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment