A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model-checker : new cfg command line flag (model-check/max_depth) for max depth of...
[simgrid.git]
/
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 30108d469726022419cb05f2d5a3a12fc007fd0a..d42d7f56ca69f68b405ba156fd27de0c83fcc6c9 100644
(file)
--- 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();
/* 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);
}
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] ",
/* Display the date */
len = snprintf(p, rem_size, "%f] ",