cpsecplugins/devicelockplugin/src/debug.h
branchGCC_SURGE
changeset 40 604cd42065d1
parent 22 6b63ca65093a
--- a/cpsecplugins/devicelockplugin/src/debug.h	Thu Jun 17 12:11:51 2010 +0100
+++ b/cpsecplugins/devicelockplugin/src/debug.h	Thu Jul 22 16:43:28 2010 +0100
@@ -15,44 +15,26 @@
  *
  */
 
-#if 0
-#ifndef DEBUG_H_
-#define DEBUG_H_
-
-#define DL_TRACE( x ) RDebug::Printf( "%s %s (%u) %s", __FILE__, __PRETTY_FUNCTION__, __LINE__, x );
-#define DL_TRACE_NUM( x, y ) RDebug::Printf( "%s %s (%u) %s=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, x, y );
-
-
-#endif /* DEBUG_H_ */
-#endif
+#if defined (_DEBUG)
 
-
-
-
-
-#ifndef SCPDEBUG_H
-#define SCPDEBUG_H
-
-   _LIT( KLogFile, "SCP.log" );
-   _LIT( KLogDir, "tarm" );
-   
-
+_LIT( KLogFile, "Devicelockplugin.log" );
+_LIT( KLogDir, "Devicelockplugin" );
 
 #include <e32std.h>
 #include <f32file.h>
 #include <flogger.h>
 #include <e32svr.h>
 
-        inline void FWrite (TRefByValue<const TDesC> aFmt,...)
-            {
-            VA_LIST list;
-            VA_START( list, aFmt );
-            RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list );
-            }
+inline void FWrite (TRefByValue<const TDesC> aFmt,...)
+    {
+    VA_LIST list;
+    VA_START( list, aFmt );
+    RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list );
+    }
 
-                #define Dprint(arg...)    FWrite arg;
+    #define Dprint(arg...)    FWrite arg;
 #else
-                #define Dprint(arg...)
+    #define Dprint(arg...)
 #endif  // _DEBUG
-       
 
+