Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] smpi set tracing category returns void
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 09:56:24 +0000 (09:56 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 09:56:24 +0000 (09:56 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9037 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/instr/instr.h
src/smpi/smpi_pmpi.c

index 4136c67..9c15d52 100644 (file)
@@ -51,7 +51,7 @@ XBT_PUBLIC(void) TRACE_user_link_variable(double time, const char *src,
                                           double value, const char *what);
 XBT_PUBLIC(void) TRACE_declare_mark(const char *mark_type);
 XBT_PUBLIC(void) TRACE_mark(const char *mark_type, const char *mark_value);
-XBT_PUBLIC(int) TRACE_smpi_set_category(const char *category);
+XBT_PUBLIC(void) TRACE_smpi_set_category(const char *category);
 XBT_PUBLIC(void) TRACE_sd_set_task_category(SD_task_t task,
                                             const char *category);
 
index 48d4f07..581cd1d 100644 (file)
@@ -13,7 +13,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_pmpi, smpi,
 
 #ifdef HAVE_TRACING
 //this function need to be here because of the calls to smpi_bench
-int TRACE_smpi_set_category(const char *category)
+void TRACE_smpi_set_category(const char *category)
 {
   //need to end bench otherwise categories for execution tasks are wrong
   smpi_bench_end();
@@ -32,7 +32,6 @@ int TRACE_smpi_set_category(const char *category)
   }
   //begin bench after changing process's category
   smpi_bench_begin();
-  return ret;
 }
 #endif