connectivitylayer/isimessage/isimessagekernel_dll/internal/kisitester/src/kisitrace.cpp
changeset 4 510c70acdbf6
parent 3 1972d8c2e329
child 5 8ccc39f9d787
equal deleted inserted replaced
3:1972d8c2e329 4:510c70acdbf6
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description:  Test extension for kernelisimessage
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "kisi_trace.h"
       
    22 
       
    23 #ifdef _DEBUG
       
    24 
       
    25 // EXTERNAL DATA STRUCTURES
       
    26 
       
    27 // EXTERNAL FUNCTION PROTOTYPES  
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // MACROS
       
    32 
       
    33 // LOCAL CONSTANTS AND MACROS
       
    34 
       
    35 // MODULE DATA STRUCTURES
       
    36 
       
    37 // LOCAL FUNCTION PROTOTYPES
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 
       
    41 // ============================= TRACE FUNCTIONS ===============================
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // BuildTraceFunc
       
    45 // -----------------------------------------------------------------------------
       
    46 void BuildTraceFunc( const TDesC& aPrefix ) // aPrefix is the component name (from developer)
       
    47     {
       
    48     __TRACE_PRINTF( ( _T("%s: Compiled=%s - %s"), aPrefix.Ptr(), __DATE__, __TIME__ ) );
       
    49     __TRACE_PRINTF( ( _T("%s: Possible flags are: { __WINS__ | _DEBUG | __KERNEL_MODE__}"), aPrefix.Ptr() ) );
       
    50     __TRACE_PRINTF( ( _T("%s: trace flags are:    { COMPONENT_TRACE_FLAG | API_TRACE_FLAG | EXTENDED_TRACE_FLAG }"), aPrefix.Ptr() ) );
       
    51     __TRACE_PRINTF( ( _T("%s: Following flags are supported" ), aPrefix.Ptr() ) );
       
    52 
       
    53 #ifdef __WINS__
       
    54     __TRACE_PRINTF( ( _T( "%s:     __WINS__" ), aPrefix.Ptr() ) );
       
    55 #endif
       
    56 
       
    57 #ifdef _DEBUG
       
    58     __TRACE_PRINTF( ( _T( "%s:     _DEBUG" ), aPrefix.Ptr() ) );
       
    59 #endif
       
    60 
       
    61 #ifdef __KERNEL_MODE__
       
    62     __TRACE_PRINTF( ( _T( "%s:     __KERNEL_MODE__" ), aPrefix.Ptr() ) );
       
    63 #endif
       
    64 
       
    65 #ifdef COMPONENT_TRACE_FLAG
       
    66     __TRACE_PRINTF( ( _T( "%s:     COMPONENT_TRACE_FLAG" ), aPrefix.Ptr() ) );
       
    67 #endif
       
    68 
       
    69 #ifdef API_TRACE_FLAG
       
    70     __TRACE_PRINTF( ( _T( "%s:     API_TRACE_FLAG" ), aPrefix.Ptr() ) );
       
    71 #endif
       
    72 
       
    73 #ifdef EXTENDED_TRACE_FLAG
       
    74     __TRACE_PRINTF( ( _T( "%s:     EXTENDED_TRACE_FLAG" ), aPrefix.Ptr() ) );
       
    75 #endif
       
    76 
       
    77     __TRACE_PRINTF( ( _T( "%s: End of Flags supported " ), aPrefix.Ptr() ) );
       
    78 
       
    79 // and so on .. Define all important flags for this component and print them here!!!
       
    80 
       
    81     }
       
    82 
       
    83 #endif // _DEBUG
       
    84 
       
    85 //  End of File