From a9527371e709834be7b27c03033b8d855caa7505 Mon Sep 17 00:00:00 2001 From: luis_pereira87 Date: Wed, 26 May 2021 22:33:55 +0100 Subject: [PATCH] Add logs for debug segmentation fault (to be reverted) --- openair2/ENB_APP/enb_config.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openair2/ENB_APP/enb_config.c b/openair2/ENB_APP/enb_config.c index 8aa0772362..03101eef83 100644 --- a/openair2/ENB_APP/enb_config.c +++ b/openair2/ENB_APP/enb_config.c @@ -3166,12 +3166,15 @@ void handle_f1ap_setup_resp(f1ap_setup_resp_t *resp) { if (RC.rrc[i]->nr_cellid == resp->cells_to_activate[j].nr_cellid && (check_plmn_identity(carrier, resp->cells_to_activate[j].mcc, resp->cells_to_activate[j].mnc, resp->cells_to_activate[j].mnc_digit_length)>0 && resp->cells_to_activate[j].nrpci == carrier->physCellId)) { + + LOG_I(ENB_APP, "Copy system information and decode it for %i number of SI\n", resp->cells_to_activate[j].num_SI); + // copy system information and decode it for (si_ind=2; si_indcells_to_activate[j].num_SI + 2; si_ind++) { - //printf("SI %d size %d: ", si_ind, resp->SI_container_length[j][si_ind]); - //for (int n=0;nSI_container_length[j][si_ind];n++) - // printf("%02x ",resp->SI_container[j][si_ind][n]); - //printf("\n"); + printf("SI %d size %d: ", si_ind, resp->cells_to_activate[j].SI_container_length[si_ind]); + for (int n=0;ncells_to_activate[j].SI_container_length[si_ind];n++) + printf("%02x ",resp->cells_to_activate[j].SI_container[si_ind][n]); + printf("\n"); if (si_ind==6) si_ind=9; if (resp->cells_to_activate[j].SI_container[si_ind] != NULL) { extract_and_decode_SI(i,