OpenMAX Bellagio
0.9.3
omx_comp_debug_levels.h
Go to the documentation of this file.
1
28
#ifndef __OMX_COMP_DEBUG_LEVELS_H__
29
#define __OMX_COMP_DEBUG_LEVELS_H__
30
31
#include <stdio.h>
32
35
#define DEB_LEV_NO_OUTPUT 0
36
39
#define DEB_LEV_ERR 1
40
43
#define DEB_LEV_PARAMS 2
44
48
#define DEB_LEV_SIMPLE_SEQ 4
49
54
#define DEB_LEV_FULL_SEQ 8
55
59
#define DEB_LEV_FUNCTION_NAME 16
60
64
#define DEFAULT_MESSAGES 32
65
68
#define DEB_ALL_MESS 255
69
70
#ifdef CONFIG_DEBUG_LEVEL
72
#define DEBUG_LEVEL (DEB_LEV_ERR | CONFIG_DEBUG_LEVEL)
73
#else
74
#define DEBUG_LEVEL (DEB_LEV_ERR)
75
#endif
76
#if DEBUG_LEVEL > 0
77
#define DEBUG(n, fmt, args...) do { if (DEBUG_LEVEL & (n)){fprintf(stderr, "OMX-"
fmt, ##args);} } while (0)
78
#else
79
#define DEBUG(n, fmt, args...) {}
80
#endif
81
82
#endif
Generated for OpenMAX Bellagio rel. 0.9.3 by
1.5.1