Remove the DBG_COLOR and DBG_ENABLE definition.

This commit is contained in:
armink
2019-03-06 17:07:15 +08:00
parent 85a0aaa3c2
commit 0d7ba79219
242 changed files with 223 additions and 202 deletions

View File

@@ -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

View File

@@ -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__);\
}

View File

@@ -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

View File

@@ -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)