X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/187ba0c05f9fbe51175179b9f637b6554f947468..ce6136d5f1a9ce68cfa6c968c257bd6c00c531d7:/src/xbt/xbt_log_layout_simple.c diff --git a/src/xbt/xbt_log_layout_simple.c b/src/xbt/xbt_log_layout_simple.c index c6acdc94b7..8f25418490 100644 --- a/src/xbt/xbt_log_layout_simple.c +++ b/src/xbt/xbt_log_layout_simple.c @@ -1,6 +1,6 @@ /* layout_simple - a dumb log layout */ -/* Copyright (c) 2007-2011. The SimGrid Team. +/* Copyright (c) 2007-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -8,12 +8,12 @@ #include "xbt/sysdep.h" #include "xbt/strbuff.h" /* For dynamic version when the static one fails */ -#include "xbt/log_private.h" -#include "xbt/synchro.h" /* xbt_thread_name */ +#include "src/xbt/log_private.h" +#include "simgrid/simix.h" /* SIMIX_host_self_get_name */ #include "surf/surf.h" #include -#include "portable.h" +#include "src/portable.h" extern const char *xbt_log_priority_names[8]; extern int xbt_log_no_loc; @@ -40,14 +40,14 @@ static int xbt_log_layout_simple_doit(xbt_log_layout_t l, /* Display the proc info if available */ procname = xbt_procname(); - if (procname && *procname) { + if (procname && strcmp(procname,"maestro")) { len = snprintf(p, rem_size, "%s:%s:(%d) ", - xbt_os_procname(), procname, xbt_getpid()); + SIMIX_host_self_get_name(), procname, xbt_getpid()); check_overflow(len); } else if (!procname) { len = snprintf(p, rem_size, "%s::(%d) ", - xbt_os_procname(), xbt_getpid()); + SIMIX_host_self_get_name(), xbt_getpid()); check_overflow(len); }