summaryrefslogtreecommitdiff
path: root/include/rtdebug.h
diff options
context:
space:
mode:
authorShicheng Chu <[email protected]>2023-06-29 23:24:25 +0800
committerGitHub <[email protected]>2023-06-29 11:24:25 -0400
commite2c031643c8dec7c9ea1581216e19bf19c8f73f0 (patch)
tree926536732e7472c5e86ac5198b239d82f9f55da4 /include/rtdebug.h
parent148ae53cf8d3abc2c2e11c94c171b123b950b2fc (diff)
[include][dbg]update: no longer use RT_DEBUG_LOG in rtdebug.h (#7750)
Diffstat (limited to 'include/rtdebug.h')
-rw-r--r--include/rtdebug.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/include/rtdebug.h b/include/rtdebug.h
index 76a9779a57..0246ad0fa5 100644
--- a/include/rtdebug.h
+++ b/include/rtdebug.h
@@ -15,64 +15,11 @@
/* Using this macro to control all kernel debug features. */
#ifdef RT_DEBUG
-/* Turn on some of these (set to non-zero) to debug kernel */
-#ifndef RT_DEBUG_MEM
-#define RT_DEBUG_MEM 0
-#endif
-
-#ifndef RT_DEBUG_MEMHEAP
-#define RT_DEBUG_MEMHEAP 0
-#endif
-
-#ifndef RT_DEBUG_MODULE
-#define RT_DEBUG_MODULE 0
-#endif
-
-#ifndef RT_DEBUG_SCHEDULER
-#define RT_DEBUG_SCHEDULER 0
-#endif
-
-#ifndef RT_DEBUG_SLAB
-#define RT_DEBUG_SLAB 0
-#endif
-
-#ifndef RT_DEBUG_THREAD
-#define RT_DEBUG_THREAD 0
-#endif
-
-#ifndef RT_DEBUG_TIMER
-#define RT_DEBUG_TIMER 0
-#endif
-
-#ifndef RT_DEBUG_IRQ
-#define RT_DEBUG_IRQ 0
-#endif
-
-#ifndef RT_DEBUG_IPC
-#define RT_DEBUG_IPC 0
-#endif
-
-#ifndef RT_DEBUG_DEVICE
-#define RT_DEBUG_DEVICE 1
-#endif
-
-#ifndef RT_DEBUG_INIT
-#define RT_DEBUG_INIT 0
-#endif
-
/* Turn on this to enable context check */
#ifndef RT_DEBUG_CONTEXT_CHECK
#define RT_DEBUG_CONTEXT_CHECK 1
#endif
-#define RT_DEBUG_LOG(type, message) \
-do \
-{ \
- if (type) \
- rt_kprintf message; \
-} \
-while (0)
-
#define RT_ASSERT(EX) \
if (!(EX)) \
{ \
@@ -156,7 +103,6 @@ while (0)
#else /* RT_DEBUG */
#define RT_ASSERT(EX)
-#define RT_DEBUG_LOG(type, message)
#define RT_DEBUG_NOT_IN_INTERRUPT
#define RT_DEBUG_IN_THREAD_CONTEXT
#define RT_DEBUG_SCHEDULER_AVAILABLE(need_check)