connectivitylayer/usbphonetlink/usbpnserver_exe/src/usbpntrace.cpp
changeset 0 63b37f68c1ce
equal deleted inserted replaced
-1:000000000000 0:63b37f68c1ce
       
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #define ASSERT_RESET ASSERT_RESET_ALWAYS
       
    20 
       
    21 // INCLUDES
       
    22 // CONSTANTS
       
    23 
       
    24 // MACROS
       
    25 // INCLUDES
       
    26 #include "usbpntrace.h"
       
    27 
       
    28 #ifdef _DEBUG
       
    29 
       
    30 // EXTERNAL DATA STRUCTURES
       
    31 
       
    32 // EXTERNAL FUNCTION PROTOTYPES
       
    33 
       
    34 // CONSTANTS
       
    35 
       
    36 // MACROS
       
    37 
       
    38 // LOCAL CONSTANTS AND MACROS
       
    39 
       
    40 // MODULE DATA STRUCTURES
       
    41 
       
    42 // LOCAL FUNCTION PROTOTYPES
       
    43 
       
    44 // FORWARD DECLARATIONS
       
    45 
       
    46 // ============================= TRACE FUNCTIONS ===============================
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // BuildTraceFunc
       
    50 // -----------------------------------------------------------------------------
       
    51 void BuildTraceFunc( const TDesC* aPrefix ) // aPrefix is the component name (from developer)
       
    52     {
       
    53 
       
    54     __TRACE_PRINTF( ( _T("%s: Compiled= __DATE__ - __TIME__"), aPrefix->Ptr() ) );
       
    55     __TRACE_PRINTF( ( _T("%s: Possible flags are: { _DEBUG | COMPONENT_TRACE_FLAG | API_TRACE_FLAG | EXTENDED_TRACE_FLAG | OST_TRACE_COMPILER_IN_USE }"), aPrefix->Ptr() ) );
       
    56     __TRACE_PRINTF( ( _T("%s: Following flags are supported" ), aPrefix->Ptr() ) );
       
    57 
       
    58 #ifdef _DEBUG
       
    59     __TRACE_PRINTF( ( _T( "%s:     _DEBUG" ), aPrefix->Ptr() ) );
       
    60 #endif
       
    61 
       
    62 #ifdef COMPONENT_TRACE_FLAG
       
    63     __TRACE_PRINTF( ( _T( "%s:     CCOMPONENT_TRACE_FLAG" ), aPrefix->Ptr() ) );
       
    64 #endif
       
    65 
       
    66 #ifdef API_TRACE_FLAG
       
    67     __TRACE_PRINTF( ( _T( "%s:     API_TRACE_FLAG" ), aPrefix->Ptr() ) );
       
    68 #endif
       
    69 
       
    70 #ifdef EXTENDED_TRACE_FLAG
       
    71     __TRACE_PRINTF( ( _T( "%s:     EXTENDED_TRACE_FLAG" ), aPrefix->Ptr() ) );
       
    72 #endif
       
    73 
       
    74 #ifdef OST_TRACE_COMPILER_IN_USE
       
    75     __TRACE_PRINTF( ( _T( "%s:     OST_TRACE_COMPILER_IN_USE" ), aPrefix->Ptr() ) );
       
    76 #endif
       
    77 
       
    78     __TRACE_PRINTF( ( _T( "%s: End of Flags supported " ), aPrefix->Ptr() ) );
       
    79 
       
    80 // and so on .. Define all important flags for this component and print them here!!!
       
    81 
       
    82     }
       
    83 
       
    84 #endif
       
    85 
       
    86 //  End of File