dbgagents/trkagent/dbgtrccomm/server/logging.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     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 "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 #ifndef __LOGGING_H__
       
    20 #define __LOGGING_H__
       
    21 
       
    22 #include <e32debug.h>
       
    23 
       
    24 
       
    25 //
       
    26 // Turn on this logging for debugging purposes when running with test code.  
       
    27 // If you turn on the logging either when tracing or while debugging, 
       
    28 // it won't work as the printf messages are handled both by trace core and debugger.
       
    29 //
       
    30 //#define _LOGGING_
       
    31 
       
    32 
       
    33 #ifdef _LOGGING_
       
    34 #define LOG_MSG(x) RDebug::Printf(x)
       
    35 #define LOG_MSG2(x, y) RDebug::Printf(x, y)
       
    36 #define LOG_MSG3(x, y, z) RDebug::Printf(x, y, z)
       
    37 #else
       
    38 #define LOG_MSG(x)
       
    39 #define LOG_MSG2(x, y)
       
    40 #define LOG_MSG3(x, y, z)
       
    41 #endif
       
    42 
       
    43 #endif