--- a/kerneltest/e32test/usbho/t_usbdi/src/wakeuptimer.cpp Thu Aug 19 11:14:22 2010 +0300
+++ b/kerneltest/e32test/usbho/t_usbdi/src/wakeuptimer.cpp Tue Aug 31 16:34:26 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2007-2010 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,6 +17,10 @@
//
#include "wakeuptimer.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "wakeuptimerTraces.h"
+#endif
namespace NUnitTesting_USBDI
@@ -26,10 +30,12 @@
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;
}
@@ -38,43 +44,50 @@
: 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()
{
- LOG_FUNC
+ OstTraceFunctionEntry1( CREMOTEWAKEUPTIMER_CONSTRUCTL_ENTRY, this );
CTimer::ConstructL();
+ OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_CONSTRUCTL_EXIT, this );
}
void CRemoteWakeupTimer::WakeUp(TUint16 aInterval)
{
- LOG_FUNC
+ OstTraceFunctionEntryExt( CREMOTEWAKEUPTIMER_WAKEUP_ENTRY, this );
After(aInterval*KOneSecond);
+ OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_WAKEUP_EXIT, this );
}
void CRemoteWakeupTimer::RunL()
{
- LOG_FUNC
+ OstTraceFunctionEntry1( CREMOTEWAKEUPTIMER_RUNL_ENTRY, this );
TInt completionCode(iStatus.Int());
if(completionCode != KErrNone)
{
- RDebug::Printf("<Error %d> software connect/disconnect timer error",completionCode);
+ OstTrace1(TRACE_NORMAL, CREMOTEWAKEUPTIMER_RUNL, "<Error %d> software connect/disconnect timer error",completionCode);
iTestDevice.ReportError(completionCode);
}
else
{
iTestDevice.RemoteWakeup();
}
+ OstTraceFunctionExit1( CREMOTEWAKEUPTIMER_RUNL_EXIT, this );
}
}