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
Category should be unlinked from its current parent.
[simgrid.git]
/
src
/
xbt
/
log.c
diff --git
a/src/xbt/log.c
b/src/xbt/log.c
index
4bed85f
..
47297d9
100644
(file)
--- a/
src/xbt/log.c
+++ b/
src/xbt/log.c
@@
-836,7
+836,7
@@
void xbt_log_parent_set(xbt_log_category_t cat, xbt_log_category_t parent)
*/
if (cat->threshold != xbt_log_priority_uninitialized) {
*/
if (cat->threshold != xbt_log_priority_uninitialized) {
- xbt_log_category_t *cpp = &parent->firstChild;
+ xbt_log_category_t *cpp = &
cat->
parent->firstChild;
while (*cpp != cat && *cpp != NULL) {
cpp = &(*cpp)->nextSibling;
while (*cpp != cat && *cpp != NULL) {
cpp = &(*cpp)->nextSibling;