eapol/eapol_framework/eapol_symbian/am/include/eap_am_trace_symbian.h
branchRCL_3
changeset 46 c74b3d9f6b9e
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
       
     1 /*
       
     2 * Copyright (c) 2001-2005 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:  EAP and WLAN authentication protocols.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 8.1.2 %
       
    20 */
       
    21 
       
    22 #if !defined( _EAP_AM_TRACE_SYMBIAN_H_ )
       
    23 #define _EAP_AM_TRACE_SYMBIAN_H_
       
    24 
       
    25 #if defined(_DEBUG)
       
    26 
       
    27 #include "eap_status_string.h"
       
    28 #include <e32debug.h>
       
    29 
       
    30 #define DEBUG(a)		            RDebug::Print(_L(a))
       
    31 #define DEBUG1(a,b)		            RDebug::Print(_L(a),b)
       
    32 #define DEBUG2(a,b,c)	            RDebug::Print(_L(a),b,c)
       
    33 #define DEBUG3(a,b,c,d)	            RDebug::Print(_L(a),b,c,d)
       
    34 #define DEBUG4(a,b,c,d,e)	        RDebug::Print(_L(a),b,c,d,e)
       
    35 #define DEBUG5(a,b,c,d,e,f)	        RDebug::Print(_L(a),b,c,d,e,f)
       
    36 #define DEBUG6(a,b,c,d,e,f,g)	    RDebug::Print(_L(a),b,c,d,e,f,g)
       
    37 #define DEBUG7(a,b,c,d,e,f,g,h) 	RDebug::Print(_L(a),b,c,d,e,f,g,h)
       
    38 #define DEBUG8(a,b,c,d,e,f,g,h,i)	RDebug::Print(_L(a),b,c,d,e,f,g,h,i)
       
    39 
       
    40 void trace_data(
       
    41 	eap_const_string prefix,
       
    42 	const void * const p_data,
       
    43 	const u32_t data_length);
       
    44 
       
    45 #define EAP_TRACE_DEBUG_SYMBIAN(_parameter_list_) \
       
    46 		{ \
       
    47 			RDebug::Print _parameter_list_ ; \
       
    48 		} \
       
    49 
       
    50 #define EAP_TRACE_DATA_DEBUG_SYMBIAN(_parameter_list_) \
       
    51 		{ \
       
    52 			trace_data _parameter_list_ ; \
       
    53 		} \
       
    54 
       
    55 #else // #if defined(_DEBUG) || defined(DEBUG)
       
    56 
       
    57 #define DEBUG(a)
       
    58 #define DEBUG1(a,b)
       
    59 #define DEBUG2(a,b,c)
       
    60 #define DEBUG3(a,b,c,d)
       
    61 #define DEBUG4(a,b,c,d,e)
       
    62 #define DEBUG5(a,b,c,d,e,f)
       
    63 #define DEBUG6(a,b,c,d,e,f,g)
       
    64 #define DEBUG7(a,b,c,d,e,f,g,h)
       
    65 #define DEBUG8(a,b,c,d,e,f,g,h,i)
       
    66 
       
    67 #define EAP_TRACE_DEBUG_SYMBIAN(_parameter_list_) 
       
    68 
       
    69 #define EAP_TRACE_DATA_DEBUG_SYMBIAN(_parameter_list_)
       
    70 
       
    71 #endif // #if defined(_DEBUG) || defined(DEBUG)
       
    72 
       
    73 #endif //#if !defined( _EAP_AM_TRACE_SYMBIAN_H_ )