Clean up logging module debug flags
cleanup debug/dump flags by avoiding repetitions in the source code and enable compiler checks. Add a help text if we set a wrong debug trace option.
This commit is contained in:
committed by
Robert Schmidt
parent
ca37e0c123
commit
536b5d8760
@@ -892,7 +892,7 @@ int main(int argc, char **argv) {
|
||||
set_glog_onlinelog(true);
|
||||
// enable these lines if you need debug info
|
||||
set_glog(loglvl);
|
||||
SET_LOG_DEBUG(UE_TIMING);
|
||||
SET_LOG_DEBUG(DEBUG_UE_TIMING);
|
||||
// moreover you need to init itti with the following line
|
||||
// however itti will catch all signals, so ctrl-c won't work anymore
|
||||
// alternatively you can disable ITTI completely in CMakeLists.txt
|
||||
|
||||
@@ -989,7 +989,7 @@ int main(int argc, char **argv) {
|
||||
set_glog_onlinelog(true);
|
||||
// enable these lines if you need debug info
|
||||
set_glog(loglvl);
|
||||
SET_LOG_DEBUG(UE_TIMING);
|
||||
set_log_debug("UE_TIMING", true);
|
||||
// moreover you need to init itti with the following line
|
||||
// however itti will catch all signals, so ctrl-c won't work anymore
|
||||
// alternatively you can disable ITTI completely in CMakeLists.txt
|
||||
|
||||
@@ -938,7 +938,7 @@ int main(int argc, char **argv) {
|
||||
ndi=0;
|
||||
phy_reset_ue(0,0,0);
|
||||
UE->UE_mode[eNB_id]=PUSCH;
|
||||
SET_LOG_DEBUG(UE_TIMING);
|
||||
set_log_debug("UE_TIMING", true);
|
||||
|
||||
for (trials = 0; trials<n_frames; trials++) {
|
||||
// printf("*");
|
||||
|
||||
@@ -403,7 +403,7 @@ int main(int argc, char **argv){
|
||||
// Configure log
|
||||
logInit();
|
||||
set_glog(loglvl);
|
||||
SET_LOG_DEBUG(PRACH);
|
||||
SET_LOG_DEBUG(DEBUG_PRACH);
|
||||
|
||||
// Configure gNB and RU
|
||||
RC.gNB = (PHY_VARS_gNB**) malloc(2*sizeof(PHY_VARS_gNB *));
|
||||
|
||||
Reference in New Issue
Block a user