kerneltest/e32test/rm_debug/multi_agent_tests/t_debug_logging.h
changeset 245 647ab20fee2e
parent 244 a77889bee936
child 252 0a40b8675b23
equal deleted inserted replaced
244:a77889bee936 245:647ab20fee2e
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Logging macros for use in debug subsystem
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef RMDEBUG_MULTI_AGENT_LOGGING_H
       
    19 #define RMDEBUG_MULTI_AGENT_LOGGING_H
       
    20 
       
    21 /* Debug messages
       
    22  * 
       
    23  * Debug messages are only generated for debug builds.
       
    24  * 
       
    25  * As user mode use RDebug::Printf(). 
       
    26  * 
       
    27  */
       
    28 
       
    29 // Uncomment if logging of multi agent test required
       
    30 // #define MULTI_AGENT_DEBUG_LOGGING 
       
    31 
       
    32 #ifdef MULTI_AGENT_DEBUG_LOGGING
       
    33 
       
    34     #include <e32debug.h>
       
    35 
       
    36     #define LOG_MSG( a )              RDebug::Printf( a )
       
    37     #define LOG_MSG2( a, b )          RDebug::Printf( a, b )
       
    38     #define LOG_MSG3( a, b, c )       RDebug::Printf( a, b, c )
       
    39     #define LOG_MSG4( a, b, c, d )    RDebug::Printf( a, b, c, d )
       
    40     #define LOG_MSG5( a, b, c, d, e )    RDebug::Printf( a, b, c, d, e )
       
    41 
       
    42 #else
       
    43 
       
    44   #define LOG_MSG( a )
       
    45   #define LOG_MSG2( a, b )
       
    46   #define LOG_MSG3( a, b, c )
       
    47   #define LOG_MSG4( a, b, c, d )
       
    48   #define LOG_MSG5( a, b, c, d, e )
       
    49 
       
    50 #endif
       
    51 
       
    52 #endif //RMDEBUG_MULTI_AGENT_LOGGING_H