diff -r d3e8e7d462dd -r f92a4f87e424 usbmgmt/usbmgr/device/classdrivers/acm/classimplementation/ecacm/src/ActiveReader.cpp --- a/usbmgmt/usbmgr/device/classdrivers/acm/classimplementation/ecacm/src/ActiveReader.cpp Thu Jul 15 20:42:20 2010 +0300 +++ b/usbmgmt/usbmgr/device/classdrivers/acm/classimplementation/ecacm/src/ActiveReader.cpp Tue Aug 31 17:01:47 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 1997-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,10 +22,9 @@ #include "AcmPanic.h" #include "ReadObserver.h" #include "AcmUtils.h" -#include - -#ifdef __FLOG_ACTIVE -_LIT8(KLogComponent, "ECACM"); +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "ActiveReaderTraces.h" #endif CActiveReader::CActiveReader(MReadObserver& aParent, RDevUsbcClient& aLdd, TEndpointNumber aEndpoint) @@ -42,7 +41,9 @@ * @param aEndpoint The endpoint to read from. */ { + OstTraceFunctionEntry0( CACTIVEREADER_CACTIVEREADER_CONS_ENTRY ); CActiveScheduler::Add(this); + OstTraceFunctionExit0( CACTIVEREADER_CACTIVEREADER_CONS_EXIT ); } CActiveReader::~CActiveReader() @@ -50,9 +51,9 @@ * Destructor. */ { - LOG_FUNC - + OstTraceFunctionEntry0( CACTIVEREADER_CACTIVEREADER_DES_ENTRY ); Cancel(); + OstTraceFunctionExit0( CACTIVEREADER_CACTIVEREADER_DES_EXIT ); } CActiveReader* CActiveReader::NewL(MReadObserver& aParent, @@ -68,9 +69,9 @@ * @return Ownership of a new CActiveReader object. */ { - LOG_STATIC_FUNC_ENTRY - + OstTraceFunctionEntry0( CACTIVEREADER_NEWL_ENTRY ); CActiveReader* self = new(ELeave) CActiveReader(aParent, aLdd, aEndpoint); + OstTraceFunctionExit0( CACTIVEREADER_NEWL_EXIT ); return self; } @@ -82,10 +83,10 @@ * @param aLen The length to read. */ { - LOG_FUNC - + OstTraceFunctionEntry0( CACTIVEREADER_READ_ENTRY ); iLdd.Read(iStatus, iEndpoint, aDes, aLen); SetActive(); + OstTraceFunctionExit0( CACTIVEREADER_READ_EXIT ); } void CActiveReader::DoCancel() @@ -93,9 +94,9 @@ * Cancel an outstanding read. */ { - LOG_FUNC - + OstTraceFunctionEntry0( CACTIVEREADER_DOCANCEL_ENTRY ); iLdd.ReadCancel(iEndpoint); + OstTraceFunctionExit0( CACTIVEREADER_DOCANCEL_EXIT ); } void CActiveReader::RunL() @@ -104,12 +105,10 @@ * parent class of the completion. */ { - LOG_LINE - LOGTEXT2(_L8(">>CActiveReader::RunL iStatus=%d"), iStatus.Int()); - + OstTraceFunctionEntry0( CACTIVEREADER_RUNL_ENTRY ); + OstTrace1( TRACE_NORMAL, CACTIVEREADER_RUNL, "CActiveReader::RunL;RunL iStatus=%d", iStatus.Int() ); iParent.ReadCompleted(iStatus.Int()); - - LOGTEXT(_L8("<