X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aefa13b20fbf858a796d4bd1573bd5e8fa9f7212..a2a1aee909cfa9076f9dbe34778140af74dfebd3:/src/xbt/xbt_log_layout_format.c diff --git a/src/xbt/xbt_log_layout_format.c b/src/xbt/xbt_log_layout_format.c index 3321e5aca9..fc206f1e8b 100644 --- a/src/xbt/xbt_log_layout_format.c +++ b/src/xbt/xbt_log_layout_format.c @@ -12,7 +12,6 @@ #include "xbt/log.h" #include "gras/virtu.h" #include -#include "xbt/ex_interface.h" /* backtraces */ extern const char *xbt_log_priority_names[7]; @@ -89,9 +88,9 @@ static char *xbt_log_layout_format_doit(xbt_log_layout_t l, break; case 'i': /* process PID name; SimGrid extension */ if (precision == -1) - p += sprintf(p, "%ld", gras_os_getpid()); + p += sprintf(p, "%d", (*xbt_getpid)()); else { - p += sprintf(p, "%.*ld", precision, gras_os_getpid()); + p += sprintf(p, "%.*d", precision, (*xbt_getpid)()); precision = -1; } break; @@ -139,7 +138,7 @@ static char *xbt_log_layout_format_doit(xbt_log_layout_t l, e.bt_strings = NULL; e.msg=NULL; e.remote=0; - xbt_ex_setup_backtrace(&e); + xbt_backtrace_current(&e); if (*q=='B') { if (precision == -1) p += sprintf(p,"%s",e.bt_strings[2]+8);