From d1bb01621beec12a03fbe1489419cabde5461919 Mon Sep 17 00:00:00 2001 From: Shell Date: Fri, 19 Apr 2024 13:13:31 +0800 Subject: fixup: add Kconfig option --- include/rttypes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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 \ -- cgit v1.3.1