kerneltest/e32test/usbho/t_otgdi/src/t_otgdi_fdfactor_main.cpp
changeset 259 57b9594f5772
parent 0 a41df078684a
child 257 3e88ff8f41d5
--- a/kerneltest/e32test/usbho/t_otgdi/src/t_otgdi_fdfactor_main.cpp	Wed Aug 18 11:08:29 2010 +0300
+++ b/kerneltest/e32test/usbho/t_otgdi/src/t_otgdi_fdfactor_main.cpp	Thu Sep 02 21:54:16 2010 +0300
@@ -1,4 +1,4 @@
-// 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 the License "Eclipse Public License v1.0"
@@ -24,6 +24,10 @@
 #include <e32std_private.h>
 
 #include "t_otgdi_fdfactor.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "t_otgdi_fdfactor_mainTraces.h"
+#endif
 
 LOCAL_C void DoStartL()
 	{
@@ -31,7 +35,7 @@
 	TInt err = User::LoadLogicalDevice(KDriverLddFileName);
 	if(err)
 		{
-		RDebug::Print(_L("FDFActor failed to load LDD %d"),err);
+		OstTrace1(TRACE_NORMAL, DOSTARTL_DOSTARTL, "FDFActor failed to load LDD %d",err);
 		}
 
 	// Create active scheduler (to run active objects)
@@ -63,7 +67,7 @@
 	err = User::FreeLogicalDevice(RUsbHubDriver::Name());
 	if(err)
 		{
-		RDebug::Print(_L("FDFActor failed to unload LDD %d"),err);
+		OstTrace1(TRACE_NORMAL, DOSTARTL_DOSTARTL_DUP01, "FDFActor failed to unload LDD %d",err);
 		}	
 	}
 
@@ -81,7 +85,7 @@
 
 	if (mainError)
 		{
-		RDebug::Print(_L("FDF Actor left with %d"), mainError);
+		OstTrace1(TRACE_NORMAL, E32MAIN_E32MAIN, "FDF Actor left with %d", mainError);
 		//	Also means that we left before we did a Rendezvous(KErrNone) to free up t_otgdi.exe
 		//	Rendezvous with KErrAbort to indicate we couldn't start up properly.
 		RProcess::Rendezvous(KErrAbort);
@@ -90,7 +94,7 @@
 	delete cleanup;
 	__UHEAP_MARKEND;
 
-	RDebug::Print(_L("About to end FDFActor process"));
+	OstTrace0(TRACE_NORMAL, E32MAIN_E32MAIN_DUP01, "About to end FDFActor process");
 	return KErrNone;
 	}