X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/999a64fe86043f1b9cc777db6a5cdc4e34c4c922..07c319ec54d6fc778ee3cc5e75a747242006723e:/src/gras/Virtu/sg_dns.c diff --git a/src/gras/Virtu/sg_dns.c b/src/gras/Virtu/sg_dns.c index 9269b0eeef..cf15311a87 100644 --- a/src/gras/Virtu/sg_dns.c +++ b/src/gras/Virtu/sg_dns.c @@ -11,19 +11,5 @@ const char *gras_os_myname(void) { - smx_host_t host; - smx_process_t process = SIMIX_process_self(); - - /*HACK: maestro used not have a simix process, now it does so - SIMIX_process_self will return something different to NULL. This breaks - the old xbt_log logic that assumed that NULL was equivalent to maestro, - thus when printing it searches for maestro host name (which doesn't exists) - and breaks the logging. - 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 && (host = SIMIX_host_self()) != NULL) - return SIMIX_host_get_name(host); - - return ""; + return SIMIX_host_self_get_name(); }