Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Category should be unlinked from its current parent.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 13 Feb 2012 09:37:32 +0000 (10:37 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 13 Feb 2012 09:52:18 +0000 (10:52 +0100)
src/xbt/log.c

index 4bed85f..47297d9 100644 (file)
@@ -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) {
 
-    xbt_log_category_t *cpp = &parent->firstChild;
+    xbt_log_category_t *cpp = &cat->parent->firstChild;
 
     while (*cpp != cat && *cpp != NULL) {
       cpp = &(*cpp)->nextSibling;