Go to the source code of this file.
◆ debug_printf
#define debug_printf |
( |
|
dp, |
|
|
|
format, |
|
|
|
ARGS... |
|
) |
| debug_printf_real(dp,__FILE__,__LINE__,__FUNCTION__,format,##ARGS) |
- Parameters
-
dp | The debug level the message is at. |
format | a printf style string |
ARGS | arguments for format |
Definition at line 56 of file debug_printf.h.
◆ DebugLevel
◆ _DebugLevel
Enumerator |
---|
DEBUG_NO_OUTPUT | No debug output
|
DEBUG_ERROR | Print only error messages
|
DEBUG_WARNING | Print Error and Warning messages
|
DEBUG_INFO | Print only error message
|
Definition at line 29 of file debug_printf.h.
◆ debug_printf_real()
void debug_printf_real |
( |
DebugLevel |
dp, |
|
|
const char * |
file, |
|
|
const int |
line, |
|
|
const char * |
function, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Internal function, do no use
◆ debug_set_level()
- Parameters
-
Set the debug level. if set to DEBUG_INFO everything is printed to stdout.
◆ debug_set_output()
void debug_set_output |
( |
FILE * |
fp | ) |
|
- Parameters
-
Redirect the output from stdout to fp. Set to NULL, to revert back to stdout.