surf_workstation_resource->common_public->
action_change_state(p_simdata->waiting_task->simdata->comm,SURF_ACTION_FAILED);
else
- fprintf(stderr,"UNKNOWN STATUS. Please report this bug.\n");
+ CRITICAL0("UNKNOWN STATUS. Please report this bug.");
} else { /* Must be trying to put a task somewhere */
- fprintf(stderr,"UNKNOWN STATUS. Please report this bug.\n");
+ if(process==MSG_process_self()) {
+ return;
+ } else {
+ CRITICAL0("UNKNOWN STATUS. Please report this bug.");
+ }
}
}
return (process->simdata->blocked);
}
-
-
-const char* xbt_procname(void) {
- char *res = NULL;
- m_process_t process = MSG_process_self();
- if ((process != NULL) && (process->simdata))
- res = (char *)MSG_process_get_name(process);
- if (res)
- return (const char*)res;
- else
- return "";
-}