os/kernelhwsrv/kerneltest/f32test/shostmassstorage/testclient/usbtestmsclient/inc/msdebug.h
Update contrib.
1 // Copyright (c) 2009 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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
28 //#define _MSFN_DEBUG_PRINT_
30 #if defined(_MSFN_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE))
31 #define MSFN_TRACE_ENABLED
34 #ifdef MSFN_TRACE_ENABLED
39 Logging function to be used with static functions. Prints the function string on
40 function entry and exit.
45 static const TInt KLogBufferSize = 0xFF;
47 TMsLogStaticFn(const TDesC8& aFunctionName);
52 TBuf8<KLogBufferSize> buf;
58 Logging function which prints the function string on function entry and exit.
63 static const TInt KLogBufferSize = 0xFF;
64 TMsLogFn(const TDesC8& aFunctionName, void* aThisPointer);
69 TBuf8<KLogBufferSize> buf;
76 #define __MSFNLOG TMsLogFn funcLog(TPtrC8((TUint8*)__PRETTY_FUNCTION__), this);
77 #define __MSFNSLOG TMsLogStaticFn funcLog(TPtrC8((TUint8*)__PRETTY_FUNCTION__));