diff -r b63e8c2d8cff -r 604cd42065d1 cpsecplugins/devicelockplugin/src/debug.h --- 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 #include #include #include - inline void FWrite (TRefByValue aFmt,...) - { - VA_LIST list; - VA_START( list, aFmt ); - RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list ); - } +inline void FWrite (TRefByValue 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 - +