equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0"" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #if 0 |
|
19 #ifndef DEBUG_H_ |
|
20 #define DEBUG_H_ |
|
21 |
|
22 #define DL_TRACE( x ) RDebug::Printf( "%s %s (%u) %s", __FILE__, __PRETTY_FUNCTION__, __LINE__, x ); |
|
23 #define DL_TRACE_NUM( x, y ) RDebug::Printf( "%s %s (%u) %s=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, x, y ); |
|
24 |
|
25 |
|
26 #endif /* DEBUG_H_ */ |
|
27 #endif |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 #ifndef SCPDEBUG_H |
|
34 #define SCPDEBUG_H |
|
35 |
|
36 _LIT( KLogFile, "SCP.log" ); |
|
37 _LIT( KLogDir, "tarm" ); |
|
38 |
|
39 |
|
40 |
|
41 #include <e32std.h> |
|
42 #include <f32file.h> |
|
43 #include <flogger.h> |
|
44 #include <e32svr.h> |
|
45 |
|
46 inline void FWrite (TRefByValue<const TDesC> aFmt,...) |
|
47 { |
|
48 VA_LIST list; |
|
49 VA_START( list, aFmt ); |
|
50 RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list ); |
|
51 } |
|
52 |
|
53 #define Dprint(arg...) FWrite arg; |
|
54 #else |
|
55 #define Dprint(arg...) |
|
56 #endif // _DEBUG |
|
57 |
|
58 |