git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7284
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
As a hack we check for maestro by looking to the assigned host, if it is
NULL then we are sure is maestro
*/
As a hack we check for maestro by looking to the assigned host, if it is
NULL then we are sure is maestro
*/
- if (process != NULL && SIMIX_host_self())
+ if (process != NULL && SIMIX_process_get_host(process))
return SIMIX_process_get_name(process);
return "";
return SIMIX_process_get_name(process);
return "";
check_overflow;
/* Display the proc info if available */
check_overflow;
/* Display the proc info if available */
- if (strlen(xbt_procname())) {
+ const char *procname=xbt_procname();
+ if (strlen(procname)) {
p += snprintf(p, XBT_LOG_BUFF_SIZE - (p - ev->buffer), "%s:%s:(%d) ",
p += snprintf(p, XBT_LOG_BUFF_SIZE - (p - ev->buffer), "%s:%s:(%d) ",
- gras_os_myname(), xbt_procname(), (*xbt_getpid) ());
+ gras_os_myname(), procname, (*xbt_getpid) ());