3 * \author John Hodge (thePowersGang)
5 * \brief UDI Tracing, Logging and Debug
10 void __udi_assert(const char *expr, const char *file, int line);
13 EXPORT(udi_trace_write);
14 EXPORT(udi_log_write);
17 EXPORT(udi_debug_break);
18 EXPORT(udi_debug_printf);
23 void udi_trace_write(udi_init_context_t *init_context, udi_trevent_t trace_event, udi_index_t meta_idx, udi_ubit32_t msgnum, ...)
25 ENTER("pinit_context itrace_event imeta_idx imsgnum",
26 init_context, trace_event, meta_idx, msgnum);
27 // const char *format = UDI_GetMessage(init_context, msgnum);
28 // LOG("format = \"%s\"", format);
32 void udi_log_write( udi_log_write_call_t *callback, udi_cb_t *gcb,
33 udi_trevent_t trace_event, udi_ubit8_t severity, udi_index_t meta_idx,
34 udi_status_t original_status, udi_ubit32_t msgnum, ... )
39 void __udi_assert(const char *expr, const char *file, int line)
41 Log("UDI Assertion failure: %s:%i - %s", file, line, expr);
45 void udi_assert(udi_boolean_t bool)
50 void udi_debug_break( udi_init_context_t *init_context, const char *message)
55 void udi_debug_printf( const char *format, ... )
58 va_start(args, format);
59 LogF("udi_debug_printf: ");