Commit 2c0bd665 authored by Lionel Gauthier's avatar Lionel Gauthier

Sebastian Held patches15/0004-easier-debugging.patch

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7306 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent bcfa212f
...@@ -174,6 +174,7 @@ add_boolean_option(PDCP_MSG_PRINT False "print PDCP messages") ...@@ -174,6 +174,7 @@ add_boolean_option(PDCP_MSG_PRINT False "print PDCP messages")
add_boolean_option(TEST_OMG False "???") add_boolean_option(TEST_OMG False "???")
add_boolean_option(DEBUG_OMG False "???") add_boolean_option(DEBUG_OMG False "???")
add_boolean_option(XFORMS False "This adds the possibility to see the signal oscilloscope") add_boolean_option(XFORMS False "This adds the possibility to see the signal oscilloscope")
add_boolean_option(DEBUG_CONSOLE False "makes debugging easier, disables stdout/stderr buffering")
add_boolean_option(ENABLE_ITTI True "ITTI is internal messaging, should remain enabled for most targets") add_boolean_option(ENABLE_ITTI True "ITTI is internal messaging, should remain enabled for most targets")
set (ITTI_DIR ${OPENAIR_DIR}/common/utils/itti) set (ITTI_DIR ${OPENAIR_DIR}/common/utils/itti)
......
...@@ -2239,6 +2239,11 @@ int main( int argc, char **argv ) ...@@ -2239,6 +2239,11 @@ int main( int argc, char **argv )
int error_code; int error_code;
#endif #endif
#ifdef DEBUG_CONSOLE
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
#endif
PHY_VARS_UE *UE[MAX_NUM_CCs]; PHY_VARS_UE *UE[MAX_NUM_CCs];
mode = normal_txrx; mode = normal_txrx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment