Skip to content

Commit

Permalink
core/msg: better DEBUG() in queue_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian18 committed Oct 19, 2023
1 parent 5aa3baa commit 7bc7f15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ static int queue_msg(thread_t *target, const msg_t *m)
int n = cib_put(&(target->msg_queue));

if (n < 0) {
DEBUG("queue_msg(): message queue is full (or there is none)\n");
DEBUG("queue_msg(): message queue of thread %"PRIkernel_pid
" is full (or there is none)\n", target->pid);
return 0;
}

Expand Down

0 comments on commit 7bc7f15

Please sign in to comment.