Changeset 734 for trunk/libffado/src/debugmodule/debugmodule.h
- Timestamp:
- 11/28/07 05:03:31 (16 years ago)
- Files:
-
- trunk/libffado/src/debugmodule/debugmodule.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/debugmodule/debugmodule.h
r698 r734 34 34 typedef short debug_level_t; 35 35 36 #define DEBUG_LEVEL_FATAL 0 37 #define DEBUG_LEVEL_ERROR 1 38 #define DEBUG_LEVEL_WARNING 2 39 #define DEBUG_LEVEL_NORMAL 3 40 #define DEBUG_LEVEL_INFO 4 41 #define DEBUG_LEVEL_VERBOSE 5 42 #define DEBUG_LEVEL_VERY_VERBOSE 6 43 #define DEBUG_LEVEL_ULTRA_VERBOSE 7 36 #define DEBUG_LEVEL_MESSAGE 0 37 #define DEBUG_LEVEL_FATAL 1 38 #define DEBUG_LEVEL_ERROR 2 39 #define DEBUG_LEVEL_WARNING 3 40 #define DEBUG_LEVEL_NORMAL 4 41 #define DEBUG_LEVEL_INFO 5 42 #define DEBUG_LEVEL_VERBOSE 6 43 #define DEBUG_LEVEL_VERY_VERBOSE 7 44 #define DEBUG_LEVEL_ULTRA_VERBOSE 8 44 45 45 46 #define DEBUG_MAX_MESSAGE_LENGTH 512 … … 95 96 ##args ) 96 97 98 // these are for messages that are also displayed when not compiled 99 // for debug 100 #define printMessage( format, args... ) \ 101 m_debugModule.print( DebugModule::eDL_Message, \ 102 __FILE__, \ 103 __FUNCTION__, \ 104 __LINE__, \ 105 format, \ 106 ##args ) 107 #define printMessageShort( format, args... ) \ 108 m_debugModule.printShort( DebugModule::eDL_Message, \ 109 format, \ 110 ##args ) 111 97 112 #define DECLARE_DEBUG_MODULE static DebugModule m_debugModule 98 113 #define IMPL_DEBUG_MODULE( ClassName, RegisterName, Level ) \ … … 182 197 public: 183 198 enum { 199 eDL_Message = DEBUG_LEVEL_MESSAGE, 184 200 eDL_Fatal = DEBUG_LEVEL_FATAL, 185 201 eDL_Error = DEBUG_LEVEL_ERROR,