[rtdbg] Add LOG_RAW and dbg_raw API to rtdbg.h .
This commit is contained in:
parent
f94cae3680
commit
9ec76e302d
|
@ -131,17 +131,21 @@
|
||||||
rt_kprintf("\n"); \
|
rt_kprintf("\n"); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define dbg_raw(...) rt_kprintf(__VA_ARGS__);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define dbg_log(level, fmt, ...)
|
#define dbg_log(level, fmt, ...)
|
||||||
#define dbg_here
|
#define dbg_here
|
||||||
#define dbg_enter
|
#define dbg_enter
|
||||||
#define dbg_exit
|
#define dbg_exit
|
||||||
#define dbg_log_line(level, ...)
|
#define dbg_log_line(level, ...)
|
||||||
|
#define dbg_raw(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LOG_D(...) dbg_log_line(DBG_LOG , __VA_ARGS__)
|
#define LOG_D(...) dbg_log_line(DBG_LOG , __VA_ARGS__)
|
||||||
#define LOG_I(...) dbg_log_line(DBG_INFO , __VA_ARGS__)
|
#define LOG_I(...) dbg_log_line(DBG_INFO , __VA_ARGS__)
|
||||||
#define LOG_W(...) dbg_log_line(DBG_WARNING, __VA_ARGS__)
|
#define LOG_W(...) dbg_log_line(DBG_WARNING, __VA_ARGS__)
|
||||||
#define LOG_E(...) dbg_log_line(DBG_ERROR , __VA_ARGS__)
|
#define LOG_E(...) dbg_log_line(DBG_ERROR , __VA_ARGS__)
|
||||||
|
#define LOG_RAW(...) dbg_raw(__VA_ARGS__)
|
||||||
|
|
||||||
#endif /* RT_DBG_H__ */
|
#endif /* RT_DBG_H__ */
|
||||||
|
|
Loading…
Reference in New Issue