Skip to content
Snippets Groups Projects
Commit 01a9af04 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

Merge pull request #3858 from OlegHahm/mutex_debug_tiny_fix

core mutex: use ATOMIC_VALUE for debug output
parents 0f740f61 ef5a7e7d
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment