From c04c1bdd385af886422b89e1bf751b9a9d322ffc Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Thu, 31 Aug 2017 23:17:47 +0200 Subject: Make mutex debugging slightly more convenient Define the macro controlling mutex debugging only if not already defined, allowing users to pass it through CFLAGS. --- kern/rtmutex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kern/rtmutex.c') diff --git a/kern/rtmutex.c b/kern/rtmutex.c index 9fcc4e0e..c07bbfef 100644 --- a/kern/rtmutex.c +++ b/kern/rtmutex.c @@ -29,8 +29,9 @@ #include #include -/* Set to 1 to enable debugging */ +#ifndef RTMUTEX_DEBUG #define RTMUTEX_DEBUG 0 +#endif /* RTMUTEX_DEBUG */ #if RTMUTEX_DEBUG -- cgit v1.2.3