From 8bda956330794a96e407394f7275e5652762fa57 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 13 Mar 2018 01:01:53 +0100 Subject: [PATCH] Solved logging error trace --- srsue/src/phy/phch_worker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsue/src/phy/phch_worker.cc b/srsue/src/phy/phch_worker.cc index 8a6c5cd8b..12e717b9a 100644 --- a/srsue/src/phy/phch_worker.cc +++ b/srsue/src/phy/phch_worker.cc @@ -574,7 +574,7 @@ bool phch_worker::decode_pdcch_dl(srsue::mac_interface_phy::mac_grant_t* grant) last_dl_pdcch_ncce = srslte_ue_dl_get_ncce(&ue_dl); - char hexstr[16]; + char hexstr[SRSLTE_DCI_MAX_BITS/8]; hexstr[0]='\0'; if (log_h->get_level() >= srslte::LOG_LEVEL_INFO) { srslte_vec_sprint_hex(hexstr, sizeof(hexstr), dci_msg.data, dci_msg.nof_bits); @@ -812,7 +812,7 @@ bool phch_worker::decode_pdcch_ul(mac_interface_phy::mac_grant_t* grant) grant->has_cqi_request = dci_unpacked.cqi_request; ret = true; - char hexstr[16]; + char hexstr[SRSLTE_DCI_MAX_BITS/8]; hexstr[0]='\0'; if (log_h->get_level() >= srslte::LOG_LEVEL_INFO) { srslte_vec_sprint_hex(hexstr, sizeof(hexstr), dci_msg.data, dci_msg.nof_bits);