Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
put the list of all existing categories in a more visible location in the doc
[simgrid.git] / src / xbt / log.c
index 16ad6ab..3cf1ceb 100644 (file)
@@ -46,6 +46,7 @@
  - \ref log_internals
    - \ref log_in_perf
    - \ref log_in_app
+ - \ref XBT_log_cats
      
 \section log_overview 1. Introduction
 
@@ -124,13 +125,13 @@ the category's parent.
 A category is created by a macro call at the top level of a file.  A
 category can be created with any one of the following macros:
 
- - \ref XBT_LOG_NEW_CATEGORY(MyCat); Create a new root
- - \ref XBT_LOG_NEW_SUBCATEGORY(MyCat, ParentCat);
+ - \ref XBT_LOG_NEW_CATEGORY(MyCat,desc); Create a new root
+ - \ref XBT_LOG_NEW_SUBCATEGORY(MyCat, ParentCat,desc);
     Create a new category being child of the category ParentCat
- - \ref XBT_LOG_NEW_DEFAULT_CATEGORY(MyCat);
+ - \ref XBT_LOG_NEW_DEFAULT_CATEGORY(MyCat,desc);
     Like XBT_LOG_NEW_CATEGORY, but the new category is the default one
       in this file
- -  \ref XBT_LOG_NEW_DEFAULT_SUBCATEGORY(MyCat, ParentCat);
+ -  \ref XBT_LOG_NEW_DEFAULT_SUBCATEGORY(MyCat, ParentCat,desc);
     Like XBT_LOG_NEW_SUBCATEGORY, but the new category is the default one
       in this file
            
@@ -665,8 +666,8 @@ void xbt_log_control_set(const char* control_string) {
   _cleanup_double_spaces(cs);
 
   while (!done) {
-    xbt_log_category_t cat;
-    int found;
+    xbt_log_category_t cat=NULL;
+    int found=0;
     xbt_ex_t e;
     
     p=strrchr(cs,' ');