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
Protect recursive calls to _xbt_log_cat_init from this function.
[simgrid.git]
/
src
/
xbt
/
log.c
diff --git
a/src/xbt/log.c
b/src/xbt/log.c
index
f9cd22f
..
fac60e0
100644
(file)
--- a/
src/xbt/log.c
+++ b/
src/xbt/log.c
@@
-1043,6
+1043,7
@@
void xbt_log_appender_set(xbt_log_category_t cat, xbt_log_appender_t app)
void xbt_log_layout_set(xbt_log_category_t cat, xbt_log_layout_t lay)
{
void xbt_log_layout_set(xbt_log_category_t cat, xbt_log_layout_t lay)
{
+#define _xbt_log_cat_init(a, b) (0)
if (!cat->appender) {
XBT_VERB
("No appender to category %s. Setting the file appender as default",
if (!cat->appender) {
XBT_VERB
("No appender to category %s. Setting the file appender as default",
@@
-1057,6
+1058,7
@@
void xbt_log_layout_set(xbt_log_category_t cat, xbt_log_layout_t lay)
}
cat->layout = lay;
xbt_log_additivity_set(cat, 0);
}
cat->layout = lay;
xbt_log_additivity_set(cat, 0);
+#undef _xbt_log_cat_init
}
void xbt_log_additivity_set(xbt_log_category_t cat, int additivity)
}
void xbt_log_additivity_set(xbt_log_category_t cat, int additivity)