|
OpenMAXBellagio 0.9.3
|
00001 00028 #ifndef __OMX_COMP_DEBUG_LEVELS_H__ 00029 #define __OMX_COMP_DEBUG_LEVELS_H__ 00030 00031 #include <stdio.h> 00032 00035 #define DEB_LEV_NO_OUTPUT 0 00036 00039 #define DEB_LEV_ERR 1 00040 00043 #define DEB_LEV_PARAMS 2 00044 00048 #define DEB_LEV_SIMPLE_SEQ 4 00049 00054 #define DEB_LEV_FULL_SEQ 8 00055 00059 #define DEB_LEV_FUNCTION_NAME 16 00060 00064 #define DEFAULT_MESSAGES 32 00065 00068 #define DEB_ALL_MESS 255 00069 00070 #ifdef CONFIG_DEBUG_LEVEL 00071 00072 #define DEBUG_LEVEL (DEB_LEV_ERR | CONFIG_DEBUG_LEVEL) 00073 #else 00074 #define DEBUG_LEVEL (DEB_LEV_ERR) 00075 #endif 00076 #if DEBUG_LEVEL > 0 00077 #define DEBUG(n, fmt, args...) do { if (DEBUG_LEVEL & (n)){fprintf(stderr, "OMX-" fmt, ##args);} } while (0) 00078 #else 00079 #define DEBUG(n, fmt, args...) {} 00080 #endif 00081 00082 #endif