From c6ab02f3f45aae961ec7315895a183ad609b6cd9 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 21 Dec 2017 11:26:05 +0100 Subject: [PATCH] Minor changes to logging --- lib/include/srslte/common/log.h | 2 ++ lib/src/phy/phch/dci.c | 2 +- srsue/src/phy/phch_recv.cc | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/include/srslte/common/log.h b/lib/include/srslte/common/log.h index 6520b43da..71f47d197 100644 --- a/lib/include/srslte/common/log.h +++ b/lib/include/srslte/common/log.h @@ -69,6 +69,7 @@ public: tti = 0; level = LOG_LEVEL_NONE; hex_limit = 0; + show_layer_en = true; } log(std::string service_name_) { @@ -76,6 +77,7 @@ public: tti = 0; level = LOG_LEVEL_NONE; hex_limit = 0; + show_layer_en = true; } // This function shall be called at the start of every tti for printing tti diff --git a/lib/src/phy/phch/dci.c b/lib/src/phy/phch/dci.c index 806713e9f..97ea9a40b 100644 --- a/lib/src/phy/phch/dci.c +++ b/lib/src/phy/phch/dci.c @@ -378,7 +378,7 @@ uint32_t srslte_dci_dl_info(char *info_str, uint32_t len, srslte_ra_dl_dci_t *dc dci_msg->type2_alloc.RB_start, dci_msg->type2_alloc.RB_start+dci_msg->type2_alloc.L_crb-1, dci_msg->type2_alloc.mode==SRSLTE_RA_TYPE2_LOC?"local":"dist"); if (dci_msg->type2_alloc.mode==SRSLTE_RA_TYPE2_LOC) { - n += snprintf(&info_str[n], len-n, "ngap=%s, nprb1a=%d", + n += snprintf(&info_str[n], len-n, ", ngap=%s, nprb1a=%d", dci_msg->type2_alloc.n_gap==SRSLTE_RA_TYPE2_NG1?"ng1":"ng2", dci_msg->type2_alloc.n_prb1a==SRSLTE_RA_TYPE2_NPRB1A_2?2:3); } diff --git a/srsue/src/phy/phch_recv.cc b/srsue/src/phy/phch_recv.cc index f653aba33..03adc67ff 100644 --- a/srsue/src/phy/phch_recv.cc +++ b/srsue/src/phy/phch_recv.cc @@ -647,7 +647,7 @@ void phch_recv::run_thread() case 1: if (last_worker) { - Warning("SF: cfo_tot=%7.1f Hz, ref=%f Hz, pss=%f Hz\n", + Debug("SF: cfo_tot=%7.1f Hz, ref=%f Hz, pss=%f Hz\n", srslte_ue_sync_get_cfo(&ue_sync), 15000*last_worker->get_ref_cfo(), 15000*ue_sync.strack.cfo_pss_mean);