Commit d4497c6b authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

trace.h: added support for run-time enabling/disabling of debug messages

parent cbda18ec
#ifndef __FREESTANDING_TRACE_H__
#define __FREESTANDING_TRACE_H__
extern int wrc_extra_debug;
#define TRACE_WRAP(...)
#define TRACE_DEV(...) mprintf(__VA_ARGS__)
#define TRACE_DEV(...) if(wrc_extra_debug) wrc_debug_printf(0, __VA_ARGS__)
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment