X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2f810149832a2d855c33d0df5b02d736c2081e41..b77b96a6fdd5563137a78a3d678bcbfa8bda66db:/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 30108d4697..d42d7f56ca 100644 --- a/src/xbt/xbt_log_layout_simple.c +++ b/src/xbt/xbt_log_layout_simple.c @@ -40,11 +40,16 @@ static int xbt_log_layout_simple_doit(xbt_log_layout_t l, /* Display the proc info if available */ procname = xbt_procname(); - if (*procname) { + if (procname && *procname) { len = snprintf(p, rem_size, "%s:%s:(%d) ", gras_os_myname(), procname, xbt_getpid()); check_overflow(len); } + else if (!procname) { + len = snprintf(p, rem_size, "%s::(%d) ", + gras_os_myname(), xbt_getpid()); + check_overflow(len); + } /* Display the date */ len = snprintf(p, rem_size, "%f] ",