Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix the log hierarchy extraction wrt mc_main, that is not in libsimgrid
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 25 Jul 2015 14:44:39 +0000 (16:44 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 25 Jul 2015 14:44:39 +0000 (16:44 +0200)
src/xbt/log.c
tools/doxygen/xbt_log_extract_hierarchy.pl

index 28e2506..1b9fd48 100644 (file)
@@ -643,8 +643,6 @@ static void xbt_log_connect_categories(void)
   XBT_LOG_CONNECT(mc_ignore);
   XBT_LOG_CONNECT(mcer_ignore);
   XBT_LOG_CONNECT(mc_liveness);
-  // This one is not in libsimgrid:
-  // XBT_LOG_CONNECT(mc_main);
   XBT_LOG_CONNECT(mc_memory);
   XBT_LOG_CONNECT(mc_memory_map);
   XBT_LOG_CONNECT(mc_page_snapshot);
index d9a85f5..40f60ee 100755 (executable)
@@ -118,7 +118,9 @@ sub display_subtree {
 display_subtree("XBT_LOG_ROOT_CAT","");
 
 map {
-    warn "Category $_ does not seem to be connected.  Use XBT_LOG_CONNECT($_).\n";
+    if ($_ ne "mc_main") { # This one is not in libsimgrid
+      warn "Category $_ does not seem to be connected.  Use XBT_LOG_CONNECT($_).\n";
+    }
 } grep {!defined $connected{$_}} sort keys %ancestor;
 map {
     warn "Category $_ does not seem to be connected to the root (anc=$ancestor{$_})\n";