mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08:00
Update all of debug log definition to DBG_TAG and DBG_LVL.
This commit is contained in:
@@ -54,7 +54,9 @@ extern "C" {
|
||||
|
||||
#if !defined(LOG_TAG)
|
||||
/* compatible for rtdbg */
|
||||
#if defined(DBG_SECTION_NAME)
|
||||
#if defined(DBG_TAG)
|
||||
#define LOG_TAG DBG_TAG
|
||||
#elif defined(DBG_SECTION_NAME)
|
||||
#define LOG_TAG DBG_SECTION_NAME
|
||||
#else
|
||||
#define LOG_TAG "NO_TAG"
|
||||
@@ -63,7 +65,9 @@ extern "C" {
|
||||
|
||||
#if !defined(LOG_LVL)
|
||||
/* compatible for rtdbg */
|
||||
#if defined(DBG_LEVEL)
|
||||
#if defined(DBG_LVL)
|
||||
#define LOG_LVL DBG_LVL
|
||||
#elif defined(DBG_LEVEL)
|
||||
#define LOG_LVL DBG_LEVEL
|
||||
#else
|
||||
#define LOG_LVL LOG_LVL_DBG
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
#include "utest.h"
|
||||
#include <utest_log.h>
|
||||
|
||||
#undef DBG_SECTION_NAME
|
||||
#undef DBG_LEVEL
|
||||
#undef DBG_TAG
|
||||
#undef DBG_LVL
|
||||
|
||||
#define DBG_SECTION_NAME "utest"
|
||||
#define DBG_TAG "utest"
|
||||
#ifdef UTEST_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#define DBG_LVL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#define DBG_LVL DBG_INFO
|
||||
#endif
|
||||
#include <rtdbg.h>
|
||||
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
|
||||
#define UTEST_DEBUG
|
||||
|
||||
#undef DBG_SECTION_NAME
|
||||
#undef DBG_LEVEL
|
||||
#undef DBG_TAG
|
||||
#undef DBG_LVL
|
||||
|
||||
#define DBG_SECTION_NAME "testcase"
|
||||
#define DBG_TAG "testcase"
|
||||
#ifdef UTEST_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#define DBG_LVL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#define DBG_LVL DBG_INFO
|
||||
#endif
|
||||
#include <rtdbg.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user