connectivitylayer/isce/isirouter_dll/inc/isiroutertrace.h
changeset 9 8486d82aef45
parent 0 63b37f68c1ce
equal deleted inserted replaced
8:6295dc2169f3 9:8486d82aef45
    32     EDISIMsgQueueTraceId,
    32     EDISIMsgQueueTraceId,
    33     EDISIIfTraceId,
    33     EDISIIfTraceId,
    34     EDISIKernelChannelId,
    34     EDISIKernelChannelId,
    35     EDISIThreadContainerTraceId,
    35     EDISIThreadContainerTraceId,
    36     EDISICLTransceiverTraceId,
    36     EDISICLTransceiverTraceId,
       
    37     EDIsiRouterServiceTraceId,
    37     };
    38     };
    38 
    39 
    39 const TUint8 KClassIdentifierShift( 8 );
    40 const TUint8 KClassIdentifierShift( 8 );
    40 const TUint8 KObjIdShift( 16 );
    41 const TUint8 KObjIdShift( 16 );
    41 const TUint8 KMediaIdShift( 16 );
    42 const TUint8 KMediaIdShift( 16 );
    46 #define _T( a ) a
    47 #define _T( a ) a
    47 #define __TRACE_PRINTF(a) Kern::Printf a
    48 #define __TRACE_PRINTF(a) Kern::Printf a
    48 
    49 
    49 #ifdef _DEBUG
    50 #ifdef _DEBUG
    50     #if defined COMPONENT_TRACE_FLAG
    51     #if defined COMPONENT_TRACE_FLAG
    51         #define C_TRACE(a) __TRACE_PRINTF(a)
    52         #define C_TRACE( a ) __TRACE_PRINTF( a )
    52     #else
    53     #else
    53         #define C_TRACE(a) 
    54         #define C_TRACE(a) 
    54     #endif // COMPONENT_TRACE_FLAG
    55     #endif // COMPONENT_TRACE_FLAG
       
    56     #if defined ISIMESSAGE_TRACE_FLAG
       
    57         /*
       
    58         * Trace function introduction.
       
    59         */
       
    60         void PrintIsiMessageTrace( TDes8& aMessage );    
       
    61         #define ISIMESSAGE_TRACE( a ) PrintIsiMessageTrace( a )
       
    62     #else
       
    63         #define ISIMESSAGE_TRACE( a ) 
       
    64     #endif // COMPONENT_TRACE_FLAG
    55 #else
    65 #else
    56     #define C_TRACE(a)
    66     #define C_TRACE(a)
       
    67     #define ISIMESSAGE_TRACE( a )
    57 #endif // _DEBUG
    68 #endif // _DEBUG
    58 
    69 
    59 // Resets are made both in UDEB and UREL (traces only in udeb)
    70 // Resets are made both in UDEB and UREL (traces only in udeb)
    60 #define ASSERT_RESET_ALWAYS(a,b) if(!(a)) { __TRACE_PRINTF(("Assertion failed: file=" __FILE__ ", line=%d, compiled="__DATE__" "__TIME__, __LINE__)); Kern::Fault( "ISI Router:", b ); }
    71 #define ASSERT_RESET_ALWAYS(a,b) if(!(a)) { __TRACE_PRINTF(("Assertion failed: file=" __FILE__ ", line=%d, compiled="__DATE__" "__TIME__, __LINE__)); Kern::Fault( "ISI Router:", b ); }
    61 #define TRACE_ASSERT_ALWAYS __TRACE_PRINTF( ("Assertion failed: file=" __FILE__ ", line=%d, compiled="__DATE__" "__TIME__, __LINE__) )
    72 #define TRACE_ASSERT_ALWAYS __TRACE_PRINTF( ("Assertion failed: file=" __FILE__ ", line=%d, compiled="__DATE__" "__TIME__, __LINE__) )