- int res = MSG_task_send(tk,mailbox);
- res++;//FIXME: check it instead of avoiding the warning
+ MSG_error_t res = MSG_task_send(tk,mailbox);
+ if(res != MSG_OK)
+ {
+ switch(res){
+ case MSG_TIMEOUT :
+ ERROR0("MSG_task_send failed : Timeout");
+ break;
+ case MSG_TRANSFER_FAILURE :
+ ERROR0("MSG_task_send failed : Transfer Failure");
+ break;
+ case MSG_HOST_FAILURE :
+ ERROR0("MSG_task_send failed : Host Failure ");
+ break;
+ default :
+ ERROR0("MSG_task_send failed : Unexpected error , please report this bug");
+ break;
+ }
+ }