diff options
| author | [email protected] <[email protected]> | 2011-06-13 02:40:24 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-13 02:40:24 +0000 |
| commit | 1aa724b5d885637d1a12da091d2b76a6b615ee8f (patch) | |
| tree | 486ec4cdc0fc4b1d266eecbd00f0ee38795cf31f /include/rtdebug.h | |
| parent | 36e1c5ab045a72eb313035453210b994d65b8e20 (diff) | |
fixd a compiler error in rtdebug.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1497 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtdebug.h')
| -rw-r--r-- | include/rtdebug.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/include/rtdebug.h b/include/rtdebug.h index 735f5dba6f..7a743f4d60 100644 --- a/include/rtdebug.h +++ b/include/rtdebug.h @@ -7,17 +7,42 @@ #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_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 /* Turn on this to enable reentrance check */ +#ifndef RT_DEBUG_REENT_CHK #define RT_DEBUG_REENT_CHK 1 +#endif #define RT_DEBUG_LOG(type,message) do{ if(type) rt_kprintf message;}while(0) @@ -54,7 +79,7 @@ extern rt_uint8_t rt_debug_reent_cnt; #else /* RT_DEBUG */ #define RT_ASSERT(EX) -#define RT_DEGUB_LOG(type,message) +#define RT_DEBUG_LOG(type,message) #define RT_DEBUG_REENT_IN #define RT_DEBUG_REENT_OUT #define RT_DEBUG_NOT_REENT |
