mirror of https://github.com/PentHertz/srsLTE.git
Minor changes to logging
This commit is contained in:
parent
968a503d93
commit
c6ab02f3f4
|
@ -69,6 +69,7 @@ public:
|
||||||
tti = 0;
|
tti = 0;
|
||||||
level = LOG_LEVEL_NONE;
|
level = LOG_LEVEL_NONE;
|
||||||
hex_limit = 0;
|
hex_limit = 0;
|
||||||
|
show_layer_en = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
log(std::string service_name_) {
|
log(std::string service_name_) {
|
||||||
|
@ -76,6 +77,7 @@ public:
|
||||||
tti = 0;
|
tti = 0;
|
||||||
level = LOG_LEVEL_NONE;
|
level = LOG_LEVEL_NONE;
|
||||||
hex_limit = 0;
|
hex_limit = 0;
|
||||||
|
show_layer_en = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function shall be called at the start of every tti for printing tti
|
// This function shall be called at the start of every tti for printing tti
|
||||||
|
|
|
@ -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.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");
|
dci_msg->type2_alloc.mode==SRSLTE_RA_TYPE2_LOC?"local":"dist");
|
||||||
if (dci_msg->type2_alloc.mode==SRSLTE_RA_TYPE2_LOC) {
|
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_gap==SRSLTE_RA_TYPE2_NG1?"ng1":"ng2",
|
||||||
dci_msg->type2_alloc.n_prb1a==SRSLTE_RA_TYPE2_NPRB1A_2?2:3);
|
dci_msg->type2_alloc.n_prb1a==SRSLTE_RA_TYPE2_NPRB1A_2?2:3);
|
||||||
}
|
}
|
||||||
|
|
|
@ -647,7 +647,7 @@ void phch_recv::run_thread()
|
||||||
case 1:
|
case 1:
|
||||||
|
|
||||||
if (last_worker) {
|
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),
|
srslte_ue_sync_get_cfo(&ue_sync),
|
||||||
15000*last_worker->get_ref_cfo(),
|
15000*last_worker->get_ref_cfo(),
|
||||||
15000*ue_sync.strack.cfo_pss_mean);
|
15000*ue_sync.strack.cfo_pss_mean);
|
||||||
|
|
Loading…
Reference in New Issue