summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChen Wang <[email protected]>2024-12-20 10:57:24 +0800
committerMeco Man <[email protected]>2024-12-20 17:50:00 -0500
commit7c7ff6e532598ba6fd8cf95da92b134081a03988 (patch)
treeb094f6f496cab097b2bb0dcc31b98b89604ec8f2 /include
parent6a7e797712ff7b297a2dd9367942656bfc42e460 (diff)
kernel: cleanup debug APIs
- `dbg_log` is a “NOT RECOMMENDED API”, convert the calling of this API to LOG_x and remove this API. - `dbg_here`/`dbg_enter`/`dbg_exit`: no one use these APIs, remove them directly. Signed-off-by: Chen Wang <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/rtdbg.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/rtdbg.h b/include/rtdbg.h
index 10331edc0e..080c722fc4 100644
--- a/include/rtdbg.h
+++ b/include/rtdbg.h
@@ -113,32 +113,6 @@ extern "C" {
rt_kprintf("\n")
#endif /* DBG_COLOR */
-/*
- * static debug routine
- * NOTE: This is a NOT RECOMMENDED API. Please using LOG_X API.
- * It will be DISCARDED later. Because it will take up more resources.
- */
-#define dbg_log(level, fmt, ...) \
- if ((level) <= DBG_LEVEL) \
- { \
- switch(level) \
- { \
- case DBG_ERROR: _DBG_LOG_HDR("E", 31); break; \
- case DBG_WARNING: _DBG_LOG_HDR("W", 33); break; \
- case DBG_INFO: _DBG_LOG_HDR("I", 32); break; \
- case DBG_LOG: _DBG_LOG_HDR("D", 0); break; \
- default: break; \
- } \
- rt_kprintf(fmt, ##__VA_ARGS__); \
- _DBG_COLOR(0); \
- }
-
-#define dbg_here \
- if ((DBG_LEVEL) <= DBG_LOG){ \
- rt_kprintf(DBG_SECTION_NAME " Here %s:%d\n", \
- __FUNCTION__, __LINE__); \
- }
-
#define dbg_log_line(lvl, color_n, fmt, ...) \
do \
{ \
@@ -151,10 +125,6 @@ extern "C" {
#define dbg_raw(...) rt_kprintf(__VA_ARGS__);
#else
-#define dbg_log(level, fmt, ...)
-#define dbg_here
-#define dbg_enter
-#define dbg_exit
#define dbg_log_line(lvl, color_n, fmt, ...)
#define dbg_raw(...)
#endif /* DBG_ENABLE */