debug: Debug Helpers

API

void (*debug_handler)(const char *fmt, ...)

Debug handler function.

DEBUG(msg)

Print a debug message.

DEBUGF(fmt, ...)

Print a debug message with string formatting.

DEBUG_ERROR(err, msg)

Print a debug error message.

RETURN_CODE(x)

Print a debug message for numeric returns.

RETURN_CODEVAL(x)

Print a debug message for libc compatible errors.

RETURN_OK

Print a debug message for successful returns.

RETURN_ERRNO(msg, ...)

Print a debug message for libc compatible errors with string formatting.