Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
throwing an exception if TRACE_start is called twice
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Apr 2010 12:38:24 +0000 (12:38 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Apr 2010 12:38:24 +0000 (12:38 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7462 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/interface.c

index 9cec676..4dc5d80 100644 (file)
@@ -34,6 +34,8 @@ int trace_mask;
  */
 int TRACE_start_with_mask(const char *filename, int mask) {
   if (IS_TRACING) { /* what? trace is already active... ignore.. */
+       THROW0 (tracing_error, TRACE_ERROR_START,
+               "TRACE_start called, but tracing is already active");
     return 0;
   }