Skip to content
Snippets Groups Projects
Commit 28572d7d authored by Martine Lenders's avatar Martine Lenders
Browse files

core: mutex: fix DEBUG pointer output

parent 64afc748
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,8 @@ void mutex_unlock(mutex_t *mutex) ...@@ -74,8 +74,8 @@ void mutex_unlock(mutex_t *mutex)
{ {
unsigned irqstate = irq_disable(); unsigned irqstate = irq_disable();
DEBUG("mutex_unlock(): queue.next: 0x%08x pid: %" PRIkernel_pid "\n", DEBUG("mutex_unlock(): queue.next: %p pid: %" PRIkernel_pid "\n",
(unsigned)mutex->queue.next, sched_active_pid); (void *)mutex->queue.next, sched_active_pid);
if (mutex->queue.next == NULL) { if (mutex->queue.next == NULL) {
/* the mutex was not locked */ /* the mutex was not locked */
...@@ -109,8 +109,8 @@ void mutex_unlock(mutex_t *mutex) ...@@ -109,8 +109,8 @@ void mutex_unlock(mutex_t *mutex)
void mutex_unlock_and_sleep(mutex_t *mutex) void mutex_unlock_and_sleep(mutex_t *mutex)
{ {
DEBUG("PID[%" PRIkernel_pid "]: unlocking mutex. queue.next: 0x%08x, and " DEBUG("PID[%" PRIkernel_pid "]: unlocking mutex. queue.next: %p, and "
"taking a nap\n", sched_active_pid, (unsigned)mutex->queue.next); "taking a nap\n", sched_active_pid, (void *)mutex->queue.next);
unsigned irqstate = irq_disable(); unsigned irqstate = irq_disable();
if (mutex->queue.next) { if (mutex->queue.next) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment