From: navarro Date: Tue, 17 Jan 2012 14:45:59 +0000 (+0100) Subject: Also display some information when procname is NULL X-Git-Tag: exp_20120216~125^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/aa78c33d810c3707ecb368a3c38b6052b600c72b Also display some information when procname is NULL --- diff --git a/src/xbt/xbt_log_layout_simple.c b/src/xbt/xbt_log_layout_simple.c index 7a81a9c30c..aa6129037a 100644 --- a/src/xbt/xbt_log_layout_simple.c +++ b/src/xbt/xbt_log_layout_simple.c @@ -45,6 +45,11 @@ static int xbt_log_layout_simple_doit(xbt_log_layout_t l, 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] ",