hotspotfw/internetconnectivitytestservice/inc/am_debug.h
changeset 0 56b72877c1cb
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:   Debug utilities
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef AM_DEBUG_H
       
    21 #define AM_DEBUG_H
       
    22 
       
    23 #include <e32svr.h>
       
    24 #ifdef _DEBUG
       
    25 
       
    26 /**
       
    27 * Class for producing debug traces
       
    28 * @lib
       
    29 * @since Series 60 3.0
       
    30 */
       
    31 class Debug
       
    32     {
       
    33     public:
       
    34         static inline void PrintBuffer( TUint aLength, const TUint8* aData );
       
    35         static inline void PrintString( const TDesC& aString, TUint aLength, const TUint8* aData );
       
    36         static inline void PrintTimestamp( const TDesC& aString );
       
    37     };
       
    38 
       
    39 #define DEBUG(a)		            RDebug::Print(_L(a))
       
    40 #define DEBUG1(a,b)		            RDebug::Print(_L(a),b)
       
    41 #define DEBUG2(a,b,c)	            RDebug::Print(_L(a),b,c)
       
    42 
       
    43 
       
    44 #include "am_debug.inl"
       
    45 
       
    46 #else // _DEBUG
       
    47 
       
    48 #define DEBUG(a)                    /* _DEBUG is not defined. */
       
    49 #define DEBUG1(a,b)                 /* _DEBUG is not defined. */
       
    50 #define DEBUG2(a,b,c)               /* _DEBUG is not defined. */
       
    51 
       
    52 
       
    53 #endif // _DEBUG
       
    54 
       
    55 #endif // AM_DEBUG_H