diff --git a/common/utils/itti/intertask_interface.c b/common/utils/itti/intertask_interface.c index 387c23e1ccb5c34ec9c9b1fcc8c635d4cc4acac5..28267900af58f195988ae35aed5a98cc66e2349e 100644 --- a/common/utils/itti/intertask_interface.c +++ b/common/utils/itti/intertask_interface.c @@ -81,13 +81,13 @@ #define ITTI_DEBUG_ISSUES (1<<5) #define ITTI_DEBUG_MP_STATISTICS (1<<6) -const int itti_debug = ITTI_DEBUG_ISSUES | ITTI_DEBUG_MP_STATISTICS; +const int itti_debug = (ITTI_DEBUG_ISSUES | ITTI_DEBUG_MP_STATISTICS); /* Don't flush if using RTAI */ #ifdef RTAI # define ITTI_DEBUG(m, x, args...) do { if ((m) & itti_debug) rt_log_debug (x, ##args); } while(0); #else -# define ITTI_DEBUG(m, x, args...) do { if ((m) & itti_debug) fprintf(stdout, "[ITTI][D]"x, ##args); fflush (stdout); } while(0); +# define ITTI_DEBUG(m, x, args...) do { if ((m) & itti_debug) {fprintf(stdout, "[ITTI][D]"x, ##args); fflush (stdout);} } while(0); #endif #define ITTI_ERROR(x, args...) do { fprintf(stdout, "[ITTI][E]"x, ##args); fflush (stdout); } while(0); diff --git a/openair2/RRC/LITE/rrc_UE.c b/openair2/RRC/LITE/rrc_UE.c index 38d7121860b5c06c7bb8357623c1e8d769b4ea4e..1b22ae5d0bd5e6db7fc4ee8245fead9ea9c69bde 100644 --- a/openair2/RRC/LITE/rrc_UE.c +++ b/openair2/RRC/LITE/rrc_UE.c @@ -98,7 +98,7 @@ extern UE_MAC_INST *UE_mac_inst; extern void *bigphys_malloc(int); #endif -#define XER_PRINT +//#define XER_PRINT extern int8_t dB_fixed2(uint32_t x,uint32_t y); diff --git a/openair3/NAS/COMMON/API/NETWORK/nas_message.c b/openair3/NAS/COMMON/API/NETWORK/nas_message.c index b571c17d3872a5a07fc97c3b055402096d108dcd..8f326904ef26b5aa31d8a6adb13571c3e74e0e56 100644 --- a/openair3/NAS/COMMON/API/NETWORK/nas_message.c +++ b/openair3/NAS/COMMON/API/NETWORK/nas_message.c @@ -53,6 +53,8 @@ Description Defines the layer 3 messages supported by the NAS sublayer #include "secu_defs.h" #include "emmData.h" +//#define DEBUG_NAS_MESSAGE + /****************************************************************************/ /**************** E X T E R N A L D E F I N I T I O N S ****************/ /****************************************************************************/ @@ -1312,6 +1314,7 @@ static uint32_t _nas_message_get_mac( (direction == SECU_DIRECTION_UPLINK) ? emm_security_context->ul_count.seq_num:emm_security_context->dl_count.seq_num, count); +#ifdef DEBUG_NAS_MESSAGE fprintf(stderr, "\n[NAS]\t"); for (i=0; i < length; i++) { @@ -1331,6 +1334,7 @@ static uint32_t _nas_message_get_mac( fprintf(stderr, "\n"); fflush(stderr); +#endif stream_cipher.key = emm_security_context->knas_int.value; stream_cipher.key_length = AUTH_KNAS_INT_SIZE;