mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 10:00:24 +00:00
Remove the DBG_COLOR and DBG_ENABLE definition.
This commit is contained in:
@@ -222,12 +222,6 @@ config RT_USING_ULOG
|
||||
select ULOG_OUTPUT_TIME
|
||||
select ULOG_USING_FILTER
|
||||
default n
|
||||
|
||||
config ULOG_SW_VERSION_NUM
|
||||
hex
|
||||
default 0x00101
|
||||
help
|
||||
sfotware module version number
|
||||
endif
|
||||
|
||||
config RT_USING_UTEST
|
||||
|
||||
@@ -47,7 +47,7 @@ extern "C" {
|
||||
#define DBG_INFO LOG_LVL_INFO
|
||||
#define DBG_LOG LOG_LVL_DBG
|
||||
#define dbg_log(level, ...) \
|
||||
if ((level) <= DBG_LEVEL) \
|
||||
if ((level) <= LOG_LVL) \
|
||||
{ \
|
||||
ulog_output(level, LOG_TAG, RT_FALSE, __VA_ARGS__);\
|
||||
}
|
||||
|
||||
@@ -17,17 +17,13 @@
|
||||
|
||||
#undef DBG_SECTION_NAME
|
||||
#undef DBG_LEVEL
|
||||
#undef DBG_COLOR
|
||||
#undef DBG_ENABLE
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_SECTION_NAME "utest"
|
||||
#ifdef UTEST_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#if RT_CONSOLEBUF_SIZE < 256
|
||||
|
||||
@@ -17,17 +17,13 @@
|
||||
|
||||
#undef DBG_SECTION_NAME
|
||||
#undef DBG_LEVEL
|
||||
#undef DBG_COLOR
|
||||
#undef DBG_ENABLE
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_SECTION_NAME "testcase"
|
||||
#ifdef UTEST_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#define UTEST_LOG_ALL (1u)
|
||||
|
||||
Reference in New Issue
Block a user