Line 45... |
Line 45... |
__ORSIM_DEBUG_LOG
|
__ORSIM_DEBUG_LOG
|
|
|
#define __ORSIM_DEBUG_LOG(args...) \
|
#define __ORSIM_DEBUG_LOG(args...) \
|
orsim_dbg_log(__dbcl, __dbch, __ORSIM_DBG_USE_FUNC, args); } while(0)
|
orsim_dbg_log(__dbcl, __dbch, __ORSIM_DBG_USE_FUNC, args); } while(0)
|
|
|
|
#define __ORSIM_GET_DEBUGGING_TRACE(dbch) ((dbch)[0] & (1 << __ORSIM_DBCL_TRACE))
|
|
#define __ORSIM_GET_DEBUGGING_WARN(dbch) ((dbch)[0] & (1 << __ORSIM_DBCL_WARN))
|
|
#define __ORSIM_GET_DEBUGGING_FIXME(dbch) ((dbch)[0] & (1 << __ORSIM_DBCL_FIXME))
|
|
#define __ORSIM_GET_DEBUGGING_ERR(dbch) ((dbch)[0] & (1 << __ORSIM_DBCL_ERR))
|
|
|
|
#define __ORSIM_GET_DEBUGGING(dbcl,dbch) __ORSIM_GET_DEBUGGING##dbcl(dbch)
|
|
|
#define TRACE_(ch) __ORSIM_DPRINTF(TRACE, __orsim_dbch_##ch)
|
#define TRACE_(ch) __ORSIM_DPRINTF(TRACE, __orsim_dbch_##ch)
|
#define FIXME_(ch) __ORSIM_DPRINTF(FIXME, __orsim_dbch_##ch)
|
#define FIXME_(ch) __ORSIM_DPRINTF(FIXME, __orsim_dbch_##ch)
|
#define WARN_(ch) __ORSIM_DPRINTF(WARN, __orsim_dbch_##ch)
|
#define WARN_(ch) __ORSIM_DPRINTF(WARN, __orsim_dbch_##ch)
|
#define ERR_(ch) __ORSIM_DPRINTF(ERR, __orsim_dbch_##ch)
|
#define ERR_(ch) __ORSIM_DPRINTF(ERR, __orsim_dbch_##ch)
|
|
|
#define TRACE __ORSIM_DPRINTF(TRACE, __orsim_dbch___default)
|
#define TRACE __ORSIM_DPRINTF(TRACE, __orsim_dbch___default)
|
#define FIXME __ORSIM_DPRINTF(FIXME, __orsim_dbch___default)
|
#define FIXME __ORSIM_DPRINTF(FIXME, __orsim_dbch___default)
|
#define WARN __ORSIM_DPRINTF(WARN, __orsim_dbch___default)
|
#define WARN __ORSIM_DPRINTF(WARN, __orsim_dbch___default)
|
#define ERR __ORSIM_DPRINTF(ERR, __orsim_dbch___default)
|
#define ERR __ORSIM_DPRINTF(ERR, __orsim_dbch___default)
|
|
|
|
#define TRACE_ON(ch) __ORSIM_GET_DEBUGGING(_TRACE,__orsim_dbch_##ch)
|
|
#define WARN_ON(ch) __ORSIM_GET_DEBUGGING(_WARN,__orsim_dbch_##ch)
|
|
#define FIXME_ON(ch) __ORSIM_GET_DEBUGGING(_FIXME,__orsim_dbch_##ch)
|
|
#define ERR_ON(ch) __ORSIM_GET_DEBUGGING(_ERR,__orsim_dbch_##ch)
|
|
|
#define DEFAULT_DEBUG_CHANNEL(dbch) \
|
#define DEFAULT_DEBUG_CHANNEL(dbch) \
|
extern char __orsim_dbch_##dbch[]; \
|
extern char __orsim_dbch_##dbch[]; \
|
static char * const __orsim_dbch___default = __orsim_dbch_##dbch;
|
static char * const __orsim_dbch___default = __orsim_dbch_##dbch;
|
|
|
#ifndef __ORSIM_NO_DEC_DBCH
|
#ifndef __ORSIM_NO_DEC_DBCH
|