usbmgmt/usbmgr/host/fdf/production/server/src/main.cpp
branchRCL_3
changeset 15 f92a4f87e424
parent 0 c9bc50fca66e
child 16 012cc2ee6408
--- a/usbmgmt/usbmgr/host/fdf/production/server/src/main.cpp	Thu Jul 15 20:42:20 2010 +0300
+++ b/usbmgmt/usbmgr/host/fdf/production/server/src/main.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"
@@ -23,16 +23,18 @@
 #include <e32base.h>
 #include "fdfserver.h"
 #include <usb/usblogger.h>
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "mainTraces.h"
+#endif
+
 
 static void RunFdfL();
 
-#ifdef __FLOG_ACTIVE
-_LIT8(KLogComponent, "fdf      ");
-#endif
 
 GLDEF_C TInt E32Main()
 	{
-	LOGTEXT(_L8(">>E32Main"));
+    OstTrace0( TRACE_NORMAL, FDF_SERVER_SRC_E32MAIN, ">>E32Main" );
 
 	TInt ret = KErrNoMemory;
 
@@ -43,22 +45,17 @@
 	if ( cleanup )
 		{
 		// Create the logger object
-#ifdef __FLOG_ACTIVE
-		(void)CUsbLog::Connect();
-#endif
 
 		TRAP(ret, RunFdfL());
 
-#ifdef __FLOG_ACTIVE
-		CUsbLog::Close();
-#endif
 
 		delete cleanup;
 		}
 
 	__UHEAP_MARKEND;
 
-	LOGTEXT2(_L8("<<E32Main ret = %d"), ret);
+	OstTrace1( TRACE_NORMAL, FDF_SERVER_SRC_E32MAIN_DUP1, 
+	        "<<E32Main ret = %d", ret );
 	return ret;
 	}