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

added debug information to msg_send (similar to msg_send_int)

This commit is contained in:
Oleg Hahm 2013-11-03 06:46:13 -08:00
parent 05ececa079
commit e44412d0c1

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;