mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 00:35:34 +03:00
Replace DEBUG_TRACE with LOG
LOG system has multiple levels, selectable both at compile and run times. FEATURE_TRACE has been removed, since we now rely just on the log level/topic and the defined outputs for the log messages.
This commit is contained in:
parent
505f44ad88
commit
45553a06ba
23 changed files with 370 additions and 223 deletions
|
@ -71,18 +71,3 @@ typedef enum {
|
|||
DEBUG_GENERIC,
|
||||
DEBUG_COUNT
|
||||
} debugType_e;
|
||||
|
||||
#if defined(USE_DEBUG_TRACE)
|
||||
void debugTraceInit(void);
|
||||
void debugTracePrintf(bool synchronous, const char *format, ...);
|
||||
void debugTracePrintBufferHex(bool synchronous, const void *buffer, size_t size);
|
||||
#define DEBUG_TRACE(fmt, ...) debugTracePrintf(false, fmt, ##__VA_ARGS__)
|
||||
#define DEBUG_TRACE_SYNC(fmt, ...) debugTracePrintf(true, fmt, ##__VA_ARGS__)
|
||||
#define DEBUG_TRACE_BUFFER_HEX(buf, size) debugTracePrintBufferHex(false, buf, size)
|
||||
#define DEBUG_TRACE_BUFFER_HEX_SYNC(buf, size) debugTracePrintBufferHex(true, buf, size)
|
||||
#else
|
||||
#define DEBUG_TRACE(fmt, ...)
|
||||
#define DEBUG_TRACE_SYNC(fmt, ...)
|
||||
#define DEBUG_TRACE_BUFFER_HEX(buf, size)
|
||||
#define DEBUG_TRACE_BUFFER_HEX_SYNC(buf, size)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue