1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #296 from OlegHahm/msg_debug

added debug information to msg_send (similar to msg_send_int)
This commit is contained in:
Christian Mehlis 2013-11-03 12:32:34 -08:00
commit 9c94d2bddd

View File

@ -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);
}
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 */
msg_t *target_message = (msg_t*) target->wait_data;
*target_message = *m;