From ef5a7e7d051c37e214ab3f0be18abdc7d484f3cf Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Wed, 16 Sep 2015 02:39:37 +0200 Subject: [PATCH] core mutex: use ATOMIC_VALUE for debug output --- core/mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/mutex.c b/core/mutex.c index a2ab285a89..bbc80bc51b 100644 --- a/core/mutex.c +++ b/core/mutex.c @@ -85,7 +85,7 @@ static void mutex_wait(struct mutex_t *mutex) void mutex_unlock(struct mutex_t *mutex) { unsigned irqstate = disableIRQ(); - DEBUG("mutex_unlock(): val: %u pid: %" PRIkernel_pid "\n", mutex->val, sched_active_pid); + DEBUG("mutex_unlock(): val: %u pid: %" PRIkernel_pid "\n", ATOMIC_VALUE(mutex->val), sched_active_pid); if (ATOMIC_VALUE(mutex->val) == 0) { /* the mutex was not locked */