36 | | #define DEBUG_LEVEL_ALL (DEBUG_LEVEL_INFO | DEBUG_LEVEL_DEVICE | DEBUG_LEVEL_SUBUNIT | DEBUG_LEVEL_DESCRIPTOR | DEBUG_LEVEL_INFOBLOCK | DEBUG_LEVEL_TRANSFERS ) |
---|
37 | | #define DEBUG_LEVEL_LOW (DEBUG_LEVEL_INFO | DEBUG_LEVEL_DEVICE) |
---|
38 | | #define DEBUG_LEVEL_MODERATE (DEBUG_LEVEL_INFO | DEBUG_LEVEL_DEVICE | DEBUG_LEVEL_SUBUNIT) |
---|
39 | | #define DEBUG_LEVEL_HIGH (DEBUG_LEVEL_MODERATE | DEBUG_LEVEL_DESCRIPTOR | DEBUG_LEVEL_INFOBLOCK) |
---|
| 38 | #define DEBUG_LEVEL_ALL ( DEBUG_LEVEL_INFO \ |
---|
| 39 | | DEBUG_LEVEL_DEVICE \ |
---|
| 40 | | DEBUG_LEVEL_SUBUNIT \ |
---|
| 41 | | DEBUG_LEVEL_DESCRIPTOR \ |
---|
| 42 | | DEBUG_LEVEL_INFOBLOCK \ |
---|
| 43 | | DEBUG_LEVEL_TRANSFERS \ |
---|
| 44 | | DEBUG_LEVEL_SCHEDULER ) |
---|
| 45 | #define DEBUG_LEVEL_LOW ( DEBUG_LEVEL_INFO \ |
---|
| 46 | | DEBUG_LEVEL_DEVICE ) |
---|
| 47 | #define DEBUG_LEVEL_MODERATE ( DEBUG_LEVEL_INFO \ |
---|
| 48 | | DEBUG_LEVEL_DEVICE \ |
---|
| 49 | | DEBUG_LEVEL_SUBUNIT ) |
---|
| 50 | #define DEBUG_LEVEL_HIGH ( DEBUG_LEVEL_MODERATE \ |
---|
| 51 | | DEBUG_LEVEL_DESCRIPTOR \ |
---|
| 52 | | DEBUG_LEVEL_INFOBLOCK ) |
---|
53 | | virtual void debugError( const char* file, |
---|
54 | | const char* function, |
---|
55 | | unsigned int line, |
---|
| 66 | virtual void error( const char* file, |
---|
| 67 | const char* function, |
---|
| 68 | unsigned int line, |
---|
| 69 | const char* format, ... ) const = 0; |
---|
| 70 | virtual void print( int level, |
---|
| 71 | const char* file, |
---|
| 72 | const char* function, |
---|
| 73 | unsigned int line, |
---|
| 74 | const char* format, ... ) const = 0; |
---|
| 75 | virtual void printShort( int level, |
---|
74 | | virtual void debugError( const char* file, |
---|
75 | | const char* function, |
---|
76 | | unsigned int line, |
---|
| 87 | virtual void error( const char* file, |
---|
| 88 | const char* function, |
---|
| 89 | unsigned int line, |
---|
| 90 | const char* format, ... ) const; |
---|
| 91 | virtual void print( int level, |
---|
| 92 | const char* file, |
---|
| 93 | const char* function, |
---|
| 94 | unsigned int line, |
---|
| 95 | const char* format, ... ) const; |
---|
| 96 | virtual void printShort( int level, |
---|
92 | | virtual void debugError( const char* file, |
---|
93 | | const char* function, |
---|
94 | | unsigned int line, |
---|
| 105 | virtual void error( const char* file, |
---|
| 106 | const char* function, |
---|
| 107 | unsigned int line, |
---|
| 108 | const char* format, ... ) const; |
---|
| 109 | virtual void print( int level, |
---|
| 110 | const char* file, |
---|
| 111 | const char* function, |
---|
| 112 | unsigned int line, |
---|
| 113 | const char* format, ... ) const; |
---|
| 114 | virtual void printShort( int level, |
---|
131 | | #define setDebugLevel(x) m_debug.setDebugLevel( x ) |
---|
132 | | #define debugError(format, args...) m_debug.debugError( __FILE__, __FUNCTION__, __LINE__, format, ##args ) |
---|
133 | | #define debugPrint(level, format, args...) m_debug.debugPrint( level, __FILE__, __FUNCTION__, __LINE__, format, ##args ) |
---|
134 | | #define debugPrintShort(level, format, args...) m_debug.debugPrintShort( level, format, ##args ) |
---|
| 144 | #define setDebugLevel(x) m_debug.setLevel( x ) |
---|
| 145 | #define debugError(format, args...) m_debug.error( __FILE__, __FUNCTION__, __LINE__, format, ##args ) |
---|
| 146 | #define debugPrint(level, format, args...) m_debug.print( level, __FILE__, __FUNCTION__, __LINE__, format, ##args ) |
---|
| 147 | #define debugPrintShort(level, format, args...) m_debug.printShort( level, format, ##args ) |
---|
| 148 | |
---|
| 149 | #define setGlobalDebugLevel(x) gGlobalDebugModule.setLevel( x ) |
---|
| 150 | #define debugGlobalError(format, args...) gGlobalDebugModule.error( __FILE__, __FUNCTION__, __LINE__, format, ##args ) |
---|
| 151 | #define debugGlobalPrint(level, format, args...) gGlobalDebugModule.print( level, __FILE__, __FUNCTION__, __LINE__, format, ##args ) |
---|
| 152 | #define debugGlobalPrintShort(level, format, args...) gGlobalDebugModule.printShort( level, format, ##args ) |
---|