Skip to content

Commit

Permalink
Merge pull request #20185 from fzi-haxel/pr/fix-mutex-debug-msg
Browse files Browse the repository at this point in the history
core/mutex: Fix debug message for mutex priority inheritance
  • Loading branch information
maribu authored Dec 14, 2023
2 parents 4e291c4 + 0fe0a6d commit e6cbdda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6cbdda

Please sign in to comment.