Merge pull request #296 from OlegHahm/msg_debug
added debug information to msg_send (similar to msg_send_int)
This commit is contained in:
commit
9c94d2bddd
@ -104,7 +104,7 @@ int msg_send(msg_t *m, unsigned int target_pid, bool block)
|
|||||||
DEBUG("msg_send: %s: Back from send block.\n", active_thread->name);
|
DEBUG("msg_send: %s: Back from send block.\n", active_thread->name);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DEBUG("msg_send: %s: Direct msg copy.\n", active_thread->name);
|
DEBUG("msg_send: %s: Direct msg copy from %i to %i.\n", active_thread->name, thread_getpid(), target_pid);
|
||||||
/* copy msg to target */
|
/* copy msg to target */
|
||||||
msg_t *target_message = (msg_t*) target->wait_data;
|
msg_t *target_message = (msg_t*) target->wait_data;
|
||||||
*target_message = *m;
|
*target_message = *m;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user