|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 |
|
24 #ifndef DEBUG_H |
|
25 #define DEBUG_H |
|
26 |
|
27 //#define _USBOTG_DEBUG_PRINT_ |
|
28 //#define _USBHOST_DEBUG_PRINT_ |
|
29 |
|
30 #if (defined(_DEBUG) || defined(_DEBUG_RELEASE)) |
|
31 #include <e32debug.h> |
|
32 #endif |
|
33 |
|
34 #if defined(_USBOTG_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) |
|
35 /** Trace - format string */ |
|
36 #define __USBOTGPRINT(t) {RDebug::Print(t);} |
|
37 /** Trace - format string with 1 param */ |
|
38 #define __USBOTGPRINT1(t,a) {RDebug::Print(t,a);} |
|
39 /** Trace - format string with 2 params */ |
|
40 #define __USBOTGPRINT2(t,a,b) {RDebug::Print(t,a,b);} |
|
41 /** Trace - format string with 3 params */ |
|
42 #define __USBOTGPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);} |
|
43 /** Trace - format string with 4 params */ |
|
44 #define __USBOTGPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);} |
|
45 /** Trace - format string with 5 params */ |
|
46 #define __USBOTGPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);} |
|
47 #else |
|
48 /** NULL definition */ |
|
49 #define __USBOTGPRINT(t) |
|
50 /** NULL definition */ |
|
51 #define __USBOTGPRINT1(t,a) |
|
52 /** NULL definition */ |
|
53 #define __USBOTGPRINT2(t,a,b) |
|
54 /** NULL definition */ |
|
55 #define __USBOTGPRINT3(t,a,b,c) |
|
56 /** NULL definition */ |
|
57 #define __USBOTGPRINT4(t,a,b,c,d) |
|
58 /** NULL definition */ |
|
59 #define __USBOTGPRINT5(t,a,b,c,d,e) |
|
60 #endif |
|
61 |
|
62 |
|
63 #if defined(_USBHOST_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) |
|
64 /** Trace - format string */ |
|
65 #define __USBHOSTPRINT(t) {RDebug::Print(t);} |
|
66 /** Trace - format string with 1 param */ |
|
67 #define __USBHOSTPRINT1(t,a) {RDebug::Print(t,a);} |
|
68 /** Trace - format string with 2 params */ |
|
69 #define __USBHOSTPRINT2(t,a,b) {RDebug::Print(t,a,b);} |
|
70 /** Trace - format string with 3 params */ |
|
71 #define __USBHOSTPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);} |
|
72 /** Trace - format string with 4 params */ |
|
73 #define __USBHOSTPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);} |
|
74 /** Trace - format string with 5 params */ |
|
75 #define __USBHOSTPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);} |
|
76 #else |
|
77 /** NULL definition */ |
|
78 #define __USBHOSTPRINT(t) |
|
79 /** NULL definition */ |
|
80 #define __USBHOSTPRINT1(t,a) |
|
81 /** NULL definition */ |
|
82 #define __USBHOSTPRINT2(t,a,b) |
|
83 /** NULL definition */ |
|
84 #define __USBHOSTPRINT3(t,a,b,c) |
|
85 /** NULL definition */ |
|
86 #define __USBHOSTPRINT4(t,a,b,c,d) |
|
87 /** NULL definition */ |
|
88 #define __USBHOSTPRINT5(t,a,b,c,d,e) |
|
89 #endif |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 #endif // DEBUG_H |