1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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.
This commit is contained in:
Frederik Haxel 2023-12-14 16:40:25 +01:00
parent a4fcf219a8
commit 0fe0a6d957

View File

@ -222,8 +222,8 @@ void mutex_unlock(mutex_t *mutex)
thread_t *owner = thread_get(mutex->owner); thread_t *owner = thread_get(mutex->owner);
if ((owner) && (owner->priority != mutex->owner_original_priority)) { if ((owner) && (owner->priority != mutex->owner_original_priority)) {
DEBUG("PID[%" PRIkernel_pid "] prio %u --> %u\n", DEBUG("PID[%" PRIkernel_pid "] prio %u --> %u\n",
owner->pid, owner->pid, (unsigned)owner->priority,
(unsigned)owner->priority, (unsigned)owner->priority); (unsigned)mutex->owner_original_priority);
sched_change_priority(owner, mutex->owner_original_priority); sched_change_priority(owner, mutex->owner_original_priority);
} }
#endif #endif