diff -r d3e8e7d462dd -r f92a4f87e424 usbmgmt/usbmgr/device/classdrivers/acm/classimplementation/ecacm/src/ActiveDataAvailableNotifier.cpp --- a/usbmgmt/usbmgr/device/classdrivers/acm/classimplementation/ecacm/src/ActiveDataAvailableNotifier.cpp Thu Jul 15 20:42:20 2010 +0300 +++ b/usbmgmt/usbmgr/device/classdrivers/acm/classimplementation/ecacm/src/ActiveDataAvailableNotifier.cpp Tue Aug 31 17:01:47 2010 +0300 @@ -1,5 +1,5 @@ /* -* 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 "Eclipse Public License v1.0" @@ -22,11 +22,12 @@ #include "AcmPanic.h" #include "AcmUtils.h" #include "NotifyDataAvailableObserver.h" -#include +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "ActiveDataAvailableNotifierTraces.h" +#endif -#ifdef __FLOG_ACTIVE -_LIT8(KLogComponent, "ECACM"); -#endif + CActiveDataAvailableNotifier::CActiveDataAvailableNotifier( MNotifyDataAvailableObserver& aParent, @@ -46,7 +47,9 @@ * @param aEndpoint The endpoint to read from. */ { + OstTraceFunctionEntry0( CACTIVEDATAAVAILABLENOTIFIER_CACTIVEDATAAVAILABLENOTIFIER_CONS_ENTRY ); CActiveScheduler::Add(this); + OstTraceFunctionExit0( CACTIVEDATAAVAILABLENOTIFIER_CACTIVEDATAAVAILABLENOTIFIER_CONS_EXIT ); } CActiveDataAvailableNotifier::~CActiveDataAvailableNotifier() @@ -54,9 +57,9 @@ * Destructor. */ { - LOG_FUNC - + OstTraceFunctionEntry0( CACTIVEDATAAVAILABLENOTIFIER_CACTIVEDATAAVAILABLENOTIFIER_DES_ENTRY ); Cancel(); + OstTraceFunctionExit0( CACTIVEDATAAVAILABLENOTIFIER_CACTIVEDATAAVAILABLENOTIFIER_DES_EXIT ); } CActiveDataAvailableNotifier* CActiveDataAvailableNotifier::NewL( @@ -74,10 +77,10 @@ * @return Ownership of a new CActiveReadOneOrMoreReader object. */ { - LOG_STATIC_FUNC_ENTRY - + OstTraceFunctionEntry0( CACTIVEDATAAVAILABLENOTIFIER_NEWL_ENTRY ); CActiveDataAvailableNotifier* self = new(ELeave) CActiveDataAvailableNotifier(aParent, aLdd, aEndpoint); + OstTraceFunctionExit0( CACTIVEDATAAVAILABLENOTIFIER_NEWL_EXIT ); return self; } @@ -86,12 +89,10 @@ * When incoming data arrives at the LDD notify the caller. */ { - LOGTEXT(_L8(">>CActiveDataAvailableNotifier::NotifyDataAvailable")); - + OstTraceFunctionEntry0( CACTIVEDATAAVAILABLENOTIFIER_NOTIFYDATAAVAILABLE_ENTRY ); iLdd.ReadOneOrMore(iStatus, iEndpoint, iUnusedBuf, 0); SetActive(); - - LOGTEXT(_L8("<