PatchworkOS  a7b3d61
A non-POSIX operating system.
Loading...
Searching...
No Matches
Debugging

Debugging. More...

Collaboration diagram for Debugging:

Detailed Description

Debugging.

Macros

#define AML_DEBUG_ERROR(ctx, format, ...)   aml_debug_error(ctx, __func__, format, ##__VA_ARGS__)
 Macro to simplify calling aml_debug_error() with the current function name.
 

Functions

void aml_debug_error (aml_term_list_ctx_t *ctx, const char *function, const char *format,...)
 Log a debug error message with context information.
 

Macro Definition Documentation

◆ AML_DEBUG_ERROR

#define AML_DEBUG_ERROR (   ctx,
  format,
  ... 
)    aml_debug_error(ctx, __func__, format, ##__VA_ARGS__)

Macro to simplify calling aml_debug_error() with the current function name.

Definition at line 30 of file debug.h.

Function Documentation

◆ aml_debug_error()

void aml_debug_error ( aml_term_list_ctx_t ctx,
const char *  function,
const char *  format,
  ... 
)

Log a debug error message with context information.

Errors should be used for unrecoverable faults such as invalid AML bytecode or runtime errors like runing out of memory.

Parameters
ctxThe AML term list context.
functionThe function name where the error occurred.
formatThe format string for the error message.
...Additional arguments for the format string.

Definition at line 96 of file debug.c.

Here is the call graph for this function: