diff -r c1f20ce4abcf -r 3e88ff8f41d5 kerneltest/e32test/usbho/t_usbdi/src/hostinterrupttransfers.cpp --- a/kerneltest/e32test/usbho/t_usbdi/src/hostinterrupttransfers.cpp Tue Aug 31 16:34:26 2010 +0300 +++ b/kerneltest/e32test/usbho/t_usbdi/src/hostinterrupttransfers.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" @@ -18,10 +18,6 @@ #include "hosttransfers.h" #include "testdebug.h" -#include "OstTraceDefinitions.h" -#ifdef OST_TRACE_COMPILER_IN_USE -#include "hostinterrupttransfersTraces.h" -#endif namespace NUnitTesting_USBDI { @@ -31,53 +27,47 @@ : CBaseTransfer(aPipe,aInterface,aObserver,aTransferId), iTransferDescriptor(aMaxTransferSize) // Allocate the buffer for interrupt transfers { - OstTraceFunctionEntryExt( CINTERRUPTTRANSFER_CINTERRUPTTRANSFER_ENTRY, this ); - OstTraceFunctionExit1( CINTERRUPTTRANSFER_CINTERRUPTTRANSFER_EXIT, this ); } CInterruptTransfer::~CInterruptTransfer() { - OstTraceFunctionEntry1( CINTERRUPTTRANSFER_CINTERRUPTTRANSFER_ENTRY_DUP01, this ); + LOG_FUNC // Cancel the transfer Cancel(); - OstTraceFunctionExit1( CINTERRUPTTRANSFER_CINTERRUPTTRANSFER_EXIT_DUP01, this ); } TPtrC8 CInterruptTransfer::DataPolled() { - OstTraceFunctionEntry1( CINTERRUPTTRANSFER_DATAPOLLED_ENTRY, this ); return iTransferDescriptor.Buffer(); } TInt CInterruptTransfer::TransferInL(TInt aSize) { - OstTraceFunctionEntryExt( CINTERRUPTTRANSFER_TRANSFERINL_ENTRY, this ); + LOG_FUNC // Activate the asynchronous transfer - OstTrace0(TRACE_NORMAL, CINTERRUPTTRANSFER_TRANSFERINL, "Activating interrupt in transfer"); + RDebug::Printf("Activating interrupt in transfer"); iTransferDescriptor.SaveData(aSize); Pipe().Transfer(iTransferDescriptor,iStatus); SetActive(); - OstTraceFunctionExitExt( CINTERRUPTTRANSFER_TRANSFERINL_EXIT, this, KErrNone ); return KErrNone; } TInt CInterruptTransfer::RegisterTransferDescriptor() { - OstTraceFunctionEntry1( CINTERRUPTTRANSFER_REGISTERTRANSFERDESCRIPTOR_ENTRY, this ); + LOG_FUNC // Register the transfer descriptor with the interface TInt err(Interface().RegisterTransferDescriptor(iTransferDescriptor)); if(err != KErrNone) { - OstTrace1(TRACE_NORMAL, CINTERRUPTTRANSFER_REGISTERTRANSFERDESCRIPTOR, " Unable to register transfer descriptor",err); + RDebug::Printf(" Unable to register transfer descriptor",err); } - OstTraceFunctionExitExt( CINTERRUPTTRANSFER_REGISTERTRANSFERDESCRIPTOR_EXIT, this, err ); return err; }