Go to the source code of this file.
|
| #define | BACKTRACE_LENGTH 256 |
| |
| #define | DEBUGLEVEL_LIMIT 9 |
| |
| #define | critical(...) _critical(__func__, __VA_ARGS__) |
| |
| #define | critical_on(cond) {debug(30, "critical_on: checking: %s", TOSTR(cond)); if (unlikely(cond)) {critical("Assert: "TOSTR(cond));}} |
| |
| #define | error(...) _error(__func__, __VA_ARGS__) |
| |
| #define | error_on(cond) {if (unlikely(cond)) {error("Error: ("TOSTR(cond)") != 0");}} |
| |
| #define | warning(...) _warning(__func__, __VA_ARGS__) |
| |
| #define | info(...) _info(__func__, __VA_ARGS__) |
| |
| #define | debug(debug_level, ...) {} |
| |
| #define | error_or_debug(debug_level, ...) ((debug_level)<0 ? _error(__func__, __VA_ARGS__) : (void)0) |
| |
| #define | debug_call(debug_level, code) debug(debug_level, "%s -> %i", TOSTR(code), code) |
| |
| #define | critical_or_warning(cond, ...) ((cond) ? _critical : _warning)(__func__, __VA_ARGS__) |
| |
|
| void | _critical (const char *const function_name, const char *fmt,...) |
| |
| void | _error (const char *const function_name, const char *fmt,...) |
| |
| void | _warning (const char *const function_name, const char *fmt,...) |
| |
| void | _info (const char *const function_name, const char *fmt,...) |
| |
| void | error_init (void *_outputmethod, int *_quiet, int *_verbose, int *_debug) |
| |
| void | error_init_ipc (ipc_type_t ipc_type) |
| |
| void | error_deinit () |
| |
◆ BACKTRACE_LENGTH
| #define BACKTRACE_LENGTH 256 |
◆ critical
| #define critical |
( |
|
... | ) |
_critical(__func__, __VA_ARGS__) |
◆ critical_on
| #define critical_on |
( |
|
cond | ) |
{debug(30, "critical_on: checking: %s", TOSTR(cond)); if (unlikely(cond)) {critical("Assert: "TOSTR(cond));}} |
◆ critical_or_warning
| #define critical_or_warning |
( |
|
cond, |
|
|
|
... |
|
) |
| ((cond) ? _critical : _warning)(__func__, __VA_ARGS__) |
◆ debug
| #define debug |
( |
|
debug_level, |
|
|
|
... |
|
) |
| {} |
◆ debug_call
| #define debug_call |
( |
|
debug_level, |
|
|
|
code |
|
) |
| debug(debug_level, "%s -> %i", TOSTR(code), code) |
◆ DEBUGLEVEL_LIMIT
| #define DEBUGLEVEL_LIMIT 9 |
◆ error
| #define error |
( |
|
... | ) |
_error(__func__, __VA_ARGS__) |
◆ error_on
| #define error_on |
( |
|
cond | ) |
{if (unlikely(cond)) {error("Error: ("TOSTR(cond)") != 0");}} |
◆ error_or_debug
| #define error_or_debug |
( |
|
debug_level, |
|
|
|
... |
|
) |
| ((debug_level)<0 ? _error(__func__, __VA_ARGS__) : (void)0) |
◆ info
| #define info |
( |
|
... | ) |
_info(__func__, __VA_ARGS__) |
◆ warning
| #define warning |
( |
|
... | ) |
_warning(__func__, __VA_ARGS__) |
◆ ipc_type_t
◆ outputmethod_t
◆ ipc_type
| Enumerator |
|---|
| IPCT_PRIVATE | |
| IPCT_SHARED | |
Definition at line 59 of file error.h.
◆ outputmethod
| Enumerator |
|---|
| OM_STDERR | |
| OM_STDOUT | |
| OM_SYSLOG | |
| OM_MAX | |
Definition at line 69 of file error.h.
◆ _critical()
| void _critical |
( |
const char *const |
function_name, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ _error()
| void _error |
( |
const char *const |
function_name, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ _info()
| void _info |
( |
const char *const |
function_name, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ _warning()
| void _warning |
( |
const char *const |
function_name, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ error_deinit()
◆ error_init()
| void error_init |
( |
void * |
_outputmethod, |
|
|
int * |
_quiet, |
|
|
int * |
_verbose, |
|
|
int * |
_debug |
|
) |
| |
◆ error_init_ipc()