From 0fe0a6d9579b9f2d2eb5e621fcacc435b7af79fa Mon Sep 17 00:00:00 2001 From: Frederik Haxel Date: Thu, 14 Dec 2023 16:40:25 +0100 Subject: [PATCH] core/mutex: fix debug message for mutex priority inheritance Fixed wrong variable in debug output in `core/mutex.c` when using MODULE_CORE_MUTEX_PRIORITY_INHERITANCE. --- core/mutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mutex.c b/core/mutex.c index 6fd891d49f..6c8db0385e 100644 --- a/core/mutex.c +++ b/core/mutex.c @@ -222,8 +222,8 @@ void mutex_unlock(mutex_t *mutex) thread_t *owner = thread_get(mutex->owner); if ((owner) && (owner->priority != mutex->owner_original_priority)) { DEBUG("PID[%" PRIkernel_pid "] prio %u --> %u\n", - owner->pid, - (unsigned)owner->priority, (unsigned)owner->priority); + owner->pid, (unsigned)owner->priority, + (unsigned)mutex->owner_original_priority); sched_change_priority(owner, mutex->owner_original_priority); } #endif