mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-20 21:29:42 +08:00
Remove the DBG_COLOR and DBG_ENABLE definition.
This commit is contained in:
+11
-5
@@ -19,16 +19,12 @@
|
||||
* header file.
|
||||
*
|
||||
* #define DBG_SECTION_NAME "MOD"
|
||||
* #define DBG_ENABLE // enable debug macro
|
||||
* #define DBG_LEVEL DBG_INFO
|
||||
* #include <rtdbg.h> // must after of DEBUG_ENABLE or some other options
|
||||
* #include <rtdbg.h> // must after of DBG_LEVEL, DBG_SECTION_NAME or other options
|
||||
*
|
||||
* Then in your C/C++ file, you can use LOG_X macro to print out logs:
|
||||
* LOG_D("this is a debug log!");
|
||||
* LOG_E("this is a error log!");
|
||||
*
|
||||
* If you want to use different color for different kinds log, you can
|
||||
* #define DBG_COLOR
|
||||
*/
|
||||
|
||||
#ifndef RT_DBG_H__
|
||||
@@ -36,6 +32,16 @@
|
||||
|
||||
#include <rtconfig.h>
|
||||
|
||||
/* the debug log will force enable when RT_DEBUG macro is defined */
|
||||
#if defined(RT_DEBUG) && !defined(DBG_ENABLE)
|
||||
#define DBG_ENABLE
|
||||
#endif
|
||||
|
||||
/* it will force output color log when RT_DEBUG_COLOR macro is defined */
|
||||
#if defined(RT_DEBUG_COLOR) && !defined(DBG_COLOR)
|
||||
#define DBG_COLOR
|
||||
#endif
|
||||
|
||||
#if defined(RT_USING_ULOG) && defined(DBG_ENABLE)
|
||||
/* using ulog compatible with rtdbg */
|
||||
#include <ulog.h>
|
||||
|
||||
Reference in New Issue
Block a user