diff -r c1f20ce4abcf -r 3e88ff8f41d5 kerneltest/e32test/usbho/t_usbdi/src/wakeuptimer.cpp --- a/kerneltest/e32test/usbho/t_usbdi/src/wakeuptimer.cpp Tue Aug 31 16:34:26 2010 +0300 +++ b/kerneltest/e32test/usbho/t_usbdi/src/wakeuptimer.cpp Wed Sep 01 12:34:56 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of the License "Eclipse Public License v1.0" @@ -17,10 +17,6 @@ // #include "wakeuptimer.h" -#include "OstTraceDefinitions.h" -#ifdef OST_TRACE_COMPILER_IN_USE -#include "wakeuptimerTraces.h" -#endif namespace NUnitTesting_USBDI @@ -30,12 +26,10 @@ CRemoteWakeupTimer* CRemoteWakeupTimer::NewL(RUsbTestDevice& aTestDevice) { - OstTraceFunctionEntry1( CREMOTEWAKEUPTIMER_NEWL_ENTRY, ( TUint )&( aTestDevice ) ); CRemoteWakeupTimer* self = new (ELeave) CRemoteWakeupTimer(aTestDevice); CleanupStack::PushL(self); self->ConstructL(); CleanupStack::Pop(self); - OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_NEWL_EXIT, ( TUint )( self ) ); return self; } @@ -44,50 +38,43 @@ : CTimer(EPriorityStandard), iTestDevice(aTestDevice) { - OstTraceFunctionEntryExt( CREMOTEWAKEUPTIMER_CREMOTEWAKEUPTIMER_ENTRY, this ); CActiveScheduler::Add(this); - OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_CREMOTEWAKEUPTIMER_EXIT, this ); } CRemoteWakeupTimer::~CRemoteWakeupTimer() { - OstTraceFunctionEntry1( CREMOTEWAKEUPTIMER_CREMOTEWAKEUPTIMER_ENTRY_DUP01, this ); - OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_CREMOTEWAKEUPTIMER_EXIT_DUP01, this ); } void CRemoteWakeupTimer::ConstructL() { - OstTraceFunctionEntry1( CREMOTEWAKEUPTIMER_CONSTRUCTL_ENTRY, this ); + LOG_FUNC CTimer::ConstructL(); - OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_CONSTRUCTL_EXIT, this ); } void CRemoteWakeupTimer::WakeUp(TUint16 aInterval) { - OstTraceFunctionEntryExt( CREMOTEWAKEUPTIMER_WAKEUP_ENTRY, this ); + LOG_FUNC After(aInterval*KOneSecond); - OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_WAKEUP_EXIT, this ); } void CRemoteWakeupTimer::RunL() { - OstTraceFunctionEntry1( CREMOTEWAKEUPTIMER_RUNL_ENTRY, this ); + LOG_FUNC TInt completionCode(iStatus.Int()); if(completionCode != KErrNone) { - OstTrace1(TRACE_NORMAL, CREMOTEWAKEUPTIMER_RUNL, " software connect/disconnect timer error",completionCode); + RDebug::Printf(" software connect/disconnect timer error",completionCode); iTestDevice.ReportError(completionCode); } else { iTestDevice.RemoteWakeup(); } - OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_RUNL_EXIT, this ); } }