Commit 57e23af6 authored by winckel's avatar winckel

Added reason in calls to exit_fun().

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4627 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent c3521038
...@@ -605,7 +605,7 @@ static void *eNB_thread(void *arg) ...@@ -605,7 +605,7 @@ static void *eNB_thread(void *arg)
LOG_D(HW,"eNB Frame %d, time %llu: missed slot, proceeding with next one (slot %d, hw_slot %d, diff %d)\n",frame, rt_get_time_ns(), slot, hw_slot, diff); LOG_D(HW,"eNB Frame %d, time %llu: missed slot, proceeding with next one (slot %d, hw_slot %d, diff %d)\n",frame, rt_get_time_ns(), slot, hw_slot, diff);
slot++; slot++;
if (frame > 0) { if (frame > 0) {
exit_fun(NULL); exit_fun("[HW][eNB] missed slot");
} }
if (slot==20){ if (slot==20){
slot=0; slot=0;
...@@ -631,7 +631,7 @@ static void *eNB_thread(void *arg) ...@@ -631,7 +631,7 @@ static void *eNB_thread(void *arg)
if (delay_cnt == 10) if (delay_cnt == 10)
{ {
LOG_D(HW,"eNB Frame %d: HW stopped ... \n",frame); LOG_D(HW,"eNB Frame %d: HW stopped ... \n",frame);
exit_fun(NULL); exit_fun("[HW][eNB] HW stopped");
} }
mbox_current = ((volatile unsigned int *)DAQ_MBOX)[0]; mbox_current = ((volatile unsigned int *)DAQ_MBOX)[0];
if ((mbox_current>=135) && (mbox_target<15)) //handle the frame wrap-arround if ((mbox_current>=135) && (mbox_target<15)) //handle the frame wrap-arround
...@@ -839,7 +839,7 @@ static void *UE_thread(void *arg) ...@@ -839,7 +839,7 @@ static void *UE_thread(void *arg)
if (diff2 <(-7)) { if (diff2 <(-7)) {
LOG_D(HW,"UE Frame %d: missed slot, proceeding with next one (slot %d, hw_slot %d, diff %d)\n",frame, slot, hw_slot, diff2); LOG_D(HW,"UE Frame %d: missed slot, proceeding with next one (slot %d, hw_slot %d, diff %d)\n",frame, slot, hw_slot, diff2);
if (frame>0) if (frame>0)
exit_fun(NULL); exit_fun("[HW][UE] missed slot");
slot++; slot++;
if (slot==20) { if (slot==20) {
slot=0; slot=0;
...@@ -874,7 +874,7 @@ static void *UE_thread(void *arg) ...@@ -874,7 +874,7 @@ static void *UE_thread(void *arg)
if (delay_cnt == 30) if (delay_cnt == 30)
{ {
LOG_D(HW,"UE frame %d: HW stopped ... \n",frame); LOG_D(HW,"UE frame %d: HW stopped ... \n",frame);
exit_fun(NULL); exit_fun("[HW][UE] HW stopped");
} }
mbox_current = ((volatile unsigned int *)DAQ_MBOX)[0]; mbox_current = ((volatile unsigned int *)DAQ_MBOX)[0];
if ((mbox_current>=135) && (mbox_target<15)) //handle the frame wrap-arround if ((mbox_current>=135) && (mbox_target<15)) //handle the frame wrap-arround
...@@ -942,7 +942,7 @@ static void *UE_thread(void *arg) ...@@ -942,7 +942,7 @@ static void *UE_thread(void *arg)
PHY_vars_UE_g[0]->lte_frame_parms.samples_per_tti*LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*sizeof(int)); PHY_vars_UE_g[0]->lte_frame_parms.samples_per_tti*LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*sizeof(int));
*/ */
if (mode == rx_calib_ue) { if (mode == rx_calib_ue) {
exit_fun(NULL); exit_fun("[HW][UE] UE in RX calibration mode");
} }
else { else {
is_synchronized = 1; is_synchronized = 1;
......
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