eapol/eapol_framework/eapol_symbian/am/common/symbian/eap_am_trace_symbian.cpp
changeset 39 fe6b6762fccd
parent 33 938269283a16
equal deleted inserted replaced
38:7a0216d033ac 39:fe6b6762fccd
     1 /*
     1 /*
     2 * Copyright (c) 2001-2005 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  Trace functions on Symbian.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 15 %
    19 * %version: 16 %
    20 */
    20 */
    21 
    21 
    22 #include "EapTraceSymbian.h"
    22 #include "EapTraceSymbian.h"
    23 #include "eap_tools.h"
    23 #include "eap_tools.h"
    24 
    24 
    25 const TInt KMaxBufferSize = 512;
    25 const TInt KMaxBufferSize = 512;
       
    26 
       
    27 //-------------------------------------------------------------------------
    26 
    28 
    27 TUint8 octet_to_ascii(i32_t octet)
    29 TUint8 octet_to_ascii(i32_t octet)
    28 {
    30 {
    29 	if (0 <= octet && octet <= 9)
    31 	if (0 <= octet && octet <= 9)
    30 	{
    32 	{
    37 	else
    39 	else
    38 	{
    40 	{
    39 		return 0;
    41 		return 0;
    40 	}
    42 	}
    41 }
    43 }
       
    44 
       
    45 //-------------------------------------------------------------------------
    42 
    46 
    43 void formatted_print(const char * const format, ...)
    47 void formatted_print(const char * const format, ...)
    44 {
    48 {
    45 	EAP_UNREFERENCED_PARAMETER(format);
    49 	EAP_UNREFERENCED_PARAMETER(format);
    46 
    50 
   123 
   127 
   124 #endif //#if defined(USE_EAP_TRACE) || defined(USE_EAP_TRACE_ALWAYS)
   128 #endif //#if defined(USE_EAP_TRACE) || defined(USE_EAP_TRACE_ALWAYS)
   125 
   129 
   126 }
   130 }
   127 
   131 
       
   132 //-------------------------------------------------------------------------
   128 
   133 
   129 EXPORT_C void eap_trace_data_symbian(
   134 EXPORT_C void eap_trace_data_symbian(
   130 	const char * const prefix,
   135 	const char * const prefix,
   131 	const void * const p_data,
   136 	const void * const p_data,
   132 	const TUint data_length)
   137 	const TUint data_length)
   259 		prefix,
   264 		prefix,
   260 		p_data,
   265 		p_data,
   261 		data_length,
   266 		data_length,
   262 		data_length);
   267 		data_length);
   263 #endif
   268 #endif
       
   269 
   264 }
   270 }
   265 
   271 
       
   272 //-------------------------------------------------------------------------
   266 // End of file
   273 // End of file