cpsecplugins/devicelockplugin/src/debug.h
changeset 19 098e361762d2
child 22 6b63ca65093a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cpsecplugins/devicelockplugin/src/debug.h	Fri May 14 16:43:26 2010 +0300
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2009 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""
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:  
+ *
+ */
+
+#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
+
+
+
+
+
+#ifndef SCPDEBUG_H
+#define SCPDEBUG_H
+
+   _LIT( KLogFile, "SCP.log" );
+   _LIT( KLogDir, "tarm" );
+   
+
+
+#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 );
+            }
+
+                #define Dprint(arg...)    FWrite arg;
+#else
+                #define Dprint(arg...)
+#endif  // _DEBUG
+       
+