diff options
Diffstat (limited to 'include/rttypes.h')
| -rw-r--r-- | include/rttypes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rttypes.h b/include/rttypes.h index f082fa0b61..fa84df1b1e 100644 --- a/include/rttypes.h +++ b/include/rttypes.h @@ -184,7 +184,7 @@ struct rt_spinlock #define _SPIN_UNLOCK_DEBUG_OWNER(lock) RT_UNUSED(lock) #endif /* RT_DEBUGING_SPINLOCK */ -#ifdef RT_USING_DEBUG +#ifdef RT_DEBUGING_CRITICAL #define _SPIN_LOCK_DEBUG_CRITICAL(lock) \ do \ { \ @@ -197,11 +197,11 @@ struct rt_spinlock (critical) = (lock)->critical_level; \ } while (0) -#else /* !RT_USING_DEBUG */ +#else /* !RT_DEBUGING_CRITICAL */ #define _SPIN_LOCK_DEBUG_CRITICAL(lock) RT_UNUSED(lock) #define _SPIN_UNLOCK_DEBUG_CRITICAL(lock, critical) do {critical = 0; RT_UNUSED(lock);} while (0) -#endif /* RT_USING_DEBUG */ +#endif /* RT_DEBUGING_CRITICAL */ #define RT_SPIN_LOCK_DEBUG(lock) \ do \ |
