--- a/usbmgmt/usbmgr/host/functiondrivers/ms/msmm/server/src/msmmnodebase.cpp Thu Jul 15 20:42:20 2010 +0300
+++ b/usbmgmt/usbmgr/host/functiondrivers/ms/msmm/server/src/msmmnodebase.cpp Tue Aug 31 17:01:47 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2008-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"
@@ -23,10 +23,12 @@
#include "msmmnodebase.h"
#include <usb/usblogger.h>
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "msmmnodebaseTraces.h"
+#endif
-#ifdef __FLOG_ACTIVE
-_LIT8(KLogComponent, "UsbHostMsmmServer");
-#endif
+
TMsmmNodeBase::TMsmmNodeBase(TInt aIdentifier):
iIdentifier(aIdentifier),
@@ -35,19 +37,22 @@
iLastChild(NULL),
iParent(NULL)
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TMSMMNODEBASE_TMSMMNODEBASE_CONS_ENTRY );
}
TMsmmNodeBase::~TMsmmNodeBase()
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TMSMMNODEBASE_TMSMMNODEBASE_DES_ENTRY );
+
// Remove current node from the parent node and destroy it.
DestroyNode();
+ OstTraceFunctionExit0( TMSMMNODEBASE_TMSMMNODEBASE_DES_EXIT );
}
void TMsmmNodeBase::DestroyNode()
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TMSMMNODEBASE_DESTROYNODE_ENTRY );
+
TMsmmNodeBase* parentNode = iParent;
TMsmmNodeBase* iterator(this);
TMsmmNodeBase* iteratorPrev(NULL);
@@ -91,6 +96,7 @@
else
{
// No matched node
+ OstTraceFunctionExit0( TMSMMNODEBASE_DESTROYNODE_EXIT );
return;
}
}
@@ -111,11 +117,13 @@
}
}
}
+ OstTraceFunctionExit0( TMSMMNODEBASE_DESTROYNODE_EXIT_DUP1 );
}
void TMsmmNodeBase::AddChild(TMsmmNodeBase* aChild)
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TMSMMNODEBASE_ADDCHILD_ENTRY );
+
if (!iFirstChild)
{
iFirstChild = aChild;
@@ -126,11 +134,13 @@
}
iLastChild = aChild;
aChild->iParent = this;
+ OstTraceFunctionExit0( TMSMMNODEBASE_ADDCHILD_EXIT );
}
TMsmmNodeBase* TMsmmNodeBase::SearchInChildren(TInt aIdentifier)
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TMSMMNODEBASE_SEARCHINCHILDREN_ENTRY );
+
TMsmmNodeBase* iterator(iFirstChild);
while (iterator)
@@ -142,6 +152,7 @@
iterator = iterator->iNextPeer;
}
+ OstTraceFunctionExit0( TMSMMNODEBASE_SEARCHINCHILDREN_EXIT );
return iterator;
}
@@ -151,7 +162,7 @@
TMsmmNodeBase(aDevice.iDeviceId),
iDevice(aDevice)
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TUSBMSDEVICE_TUSBMSDEVICE_CONS_ENTRY );
}
// TUsbMsInterface
@@ -162,13 +173,15 @@
iInterfaceNumber(aInterfaceNumber),
iInterfaceToken(aInterfaceToken)
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TUSBMSINTERFACE_TUSBMSINTERFACE_CONS_ENTRY );
}
TUsbMsInterface::~TUsbMsInterface()
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TUSBMSINTERFACE_TUSBMSINTERFACE_DES_ENTRY );
+
iUsbMsDevice.Close();
+ OstTraceFunctionExit0( TUSBMSINTERFACE_TUSBMSINTERFACE_DES_EXIT );
}
// TUsbMsLogicalUnit
@@ -178,7 +191,7 @@
iLogicalUnitNumber(aLogicalUnitNumber),
iDrive(aDrive)
{
- LOG_FUNC
+ OstTraceFunctionEntry0( TUSBMSLOGICALUNIT_TUSBMSLOGICALUNIT_CONS_ENTRY );
}
// End of file