First public contribution.
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.
20 _LIT8(KMsgSIn, ">>\t%S\r\n");
21 _LIT8(KMsgSOut,"<<\t%S\r\n");
22 _LIT8(KMsgIn, ">>[0x%08x]\t%S\r\n");
23 _LIT8(KMsgOut,"<<[0x%08x]\t%S\r\n");
26 TMsLogStaticFn::TMsLogStaticFn(const TDesC8& aFunctionName)
28 iFunctionName.Set(aFunctionName);
29 buf.AppendFormat(KMsgSIn, &iFunctionName);
30 RDebug::RawPrint(buf);
34 TMsLogStaticFn::~TMsLogStaticFn()
37 buf.AppendFormat(KMsgSOut, &iFunctionName);
38 RDebug::RawPrint(buf);
42 TMsLogFn::TMsLogFn(const TDesC8& aFunctionName, void* aThisPointer)
43 : iThisPointer(aThisPointer)
45 iFunctionName.Set(aFunctionName);
46 buf.AppendFormat(KMsgIn, iThisPointer, &iFunctionName);
47 RDebug::RawPrint(buf);
54 buf.AppendFormat(KMsgOut, iThisPointer, &iFunctionName);
55 RDebug::RawPrint(buf);