Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
correcting exception message to let user know which category was already created
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 13 Apr 2010 15:41:37 +0000 (15:41 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 13 Apr 2010 15:41:37 +0000 (15:41 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7553 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/interface.c

index 6e13062..33a9e10 100644 (file)
@@ -161,7 +161,7 @@ void TRACE_create_category (const char *category,
   }
   //check if category is created
   if (xbt_dict_get_or_null (created_categories, category)){
   }
   //check if category is created
   if (xbt_dict_get_or_null (created_categories, category)){
-        THROW1 (tracing_error, TRACE_ERROR_CATEGORY_ALREADY_DEFINED, "Category %s is already created", type);
+        THROW1 (tracing_error, TRACE_ERROR_CATEGORY_ALREADY_DEFINED, "Category %s is already created", category);
   }
 
   pajeCreateContainer(MSG_get_clock(), category, type, parent_category, category);
   }
 
   pajeCreateContainer(MSG_get_clock(), category, type, parent_category, category);