Barrelfish
|
Debug makro definitions. More...
Macros | |
#define | DEBUG_LEVEL 2 |
Debug level. More... | |
#define | PDEBUG_FNAME(x) char* __DEBUG__CURRENT_FUNCTION_NAME = x; int __DEBUG__OMIT = 0; if (__DEBUG__OMIT) {}; |
Set the current function name for well-arranged debug messages. | |
#define | PDEBUG_OMIT __DEBUG__OMIT = 1; |
When calling this makro, all debug messages for the caller function will be omitted. | |
#define | PDEBUG_HEADER(x) |
This prints a debug header e.g: libbfdmux.c:regster_app: *** Hello world debug message ***. | |
#define | PDEBUG_FOOTER(x) |
This prints a debug footer line e.g: libbfdmux.c:regiser_app ### Foo bar footer ###. | |
#define | PDEBUG_ERROR(x) |
This makro is used to print error messages. | |
#define | PDEBUG_INFO(x) |
This makro is used to print additional information. | |
#define | PDEBUG_RAW(arr, cnt) |
This makro is used to dump a memory segment to the screen as hex and. More... | |
Debug makro definitions.
#define DEBUG_LEVEL 2 |
Debug level.
#define PDEBUG_RAW | ( | arr, | |
cnt | |||
) |
This makro is used to dump a memory segment to the screen as hex and.
(if the debug level allows it) as characters.