AM64x MCU+ SDK  09.02.01
cdn_log.h File Reference

Go to the source code of this file.

Macros

#define CLIENT_MSG   0x01000000
 
#define DBG_GEN_MSG   0xFFFFFFFF
 
#define DBG_CRIT   0
 
#define DBG_WARN   5
 
#define DBG_FYI   10
 
#define DBG_HIVERB   100
 
#define DBG_INFLOOP   200
 
#define cDbgMsg(_t, _x, ...)
 
#define DbgMsg(t, x, ...)
 
#define DEBUG_PREFIX   "[ %s : %d ] "
 
#define vDbgMsg(log_lvl, module, msg, ...)
 
#define cvDbgMsg(log_lvl, module, msg, ...)
 
#define evDbgMsg(log_lvl, module, msg, ...)
 

Variables

uint32_t g_dbg_enable_log
 
uint32_t g_dbg_log_lvl
 
uint32_t g_dbg_log_cnt
 
uint32_t g_dbg_state
 

Macro Definition Documentation

◆ CLIENT_MSG

#define CLIENT_MSG   0x01000000

Modules definitions

◆ DBG_GEN_MSG

#define DBG_GEN_MSG   0xFFFFFFFF

◆ DBG_CRIT

#define DBG_CRIT   0

Log level: DBG_CRIT - critical DBG_WARN - warning DBG_FYI - fyi DBG_HIVERB - highly verbose DBG_INFLOOP - infinite loop debug

◆ DBG_WARN

#define DBG_WARN   5

◆ DBG_FYI

#define DBG_FYI   10

◆ DBG_HIVERB

#define DBG_HIVERB   100

◆ DBG_INFLOOP

#define DBG_INFLOOP   200

◆ cDbgMsg

#define cDbgMsg (   _t,
  _x,
  ... 
)

◆ DbgMsg

#define DbgMsg (   t,
  x,
  ... 
)

◆ DEBUG_PREFIX

#define DEBUG_PREFIX   "[ %s : %d ] "

◆ vDbgMsg

#define vDbgMsg (   log_lvl,
  module,
  msg,
  ... 
)
Value:
DbgMsg( (log_lvl), (module), (DEBUG_PREFIX msg),__func__, \
__LINE__,__VA_ARGS__)

◆ cvDbgMsg

#define cvDbgMsg (   log_lvl,
  module,
  msg,
  ... 
)
Value:
cDbgMsg( (log_lvl), (module), (DEBUG_PREFIX msg), __func__, \
__LINE__, g_dbg_log_cnt++, __VA_ARGS__)

◆ evDbgMsg

#define evDbgMsg (   log_lvl,
  module,
  msg,
  ... 
)
Value:
{ cDbgMsg( (log_lvl), (module), (DEBUG_PREFIX msg), __func__, \
__LINE__, g_dbg_log_cnt++, __VA_ARGS__); \
assert(0); }

Variable Documentation

◆ g_dbg_enable_log

uint32_t g_dbg_enable_log
extern

◆ g_dbg_log_lvl

uint32_t g_dbg_log_lvl
extern

◆ g_dbg_log_cnt

uint32_t g_dbg_log_cnt
extern

◆ g_dbg_state

uint32_t g_dbg_state
extern
cDbgMsg
#define cDbgMsg(_t, _x,...)
Definition: cdn_log.h:116
DbgMsg
#define DbgMsg(t, x,...)
Definition: cdn_log.h:122
g_dbg_log_cnt
uint32_t g_dbg_log_cnt
DEBUG_PREFIX
#define DEBUG_PREFIX
Definition: cdn_log.h:125