Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Take the gras.h from the current dir, not the installed one
[simgrid.git] / src / gras / DataDesc / ddt_parse.c
index c4c28da..0ee9b7c 100644 (file)
@@ -128,9 +128,10 @@ static gras_error_t parse_statement(char           *definition,
         definition[colon_pos] != ';';
         colon_pos++);
     definition[colon_pos] = '\0';
-    DEBUG2("Parse the statement \"%s%s;\"",
+    DEBUG3("Parse the statement \"%s%s;\" (col_pos=%d)",
           gras_ddt_parse_text,
-          definition+gras_ddt_parse_col_pos);
+          definition+gras_ddt_parse_col_pos,
+          gras_ddt_parse_col_pos);
     definition[colon_pos] = ';';
   }
 
@@ -277,9 +278,9 @@ static gras_error_t parse_statement(char            *definition,
 
          if (end == gras_ddt_parse_text ||
              *end != '\0') {
-           ERROR3("Unparsable size of array at %d:%d of %s",
+           ERROR4("Unparsable size of array at %d:%d of %s. Found '%c', expected '\\0'",
                   gras_ddt_parse_line_pos,gras_ddt_parse_char_pos,
-                  definition);
+                  definition,*end);
            gras_abort();
          }
          /* replace the previously pushed type to an array of it */
@@ -306,7 +307,7 @@ static gras_error_t parse_statement(char            *definition,
                   definition);
            gras_abort();
          }
-       DEBUG1("Fixed size array, size=%d",size);
+       DEBUG1("Fixed size array, size=%ld",size);
        continue;
        } else {
          ERROR3("Unparsable size of array at %d:%d of %s",
@@ -489,7 +490,7 @@ gras_datadesc_parse(const char            *name,
   definition[def_count] = '\0';
 
   /* init */ 
-  VERB1("_gras_ddt_type_parse(%s)",definition);
+  VERB2("_gras_ddt_type_parse(%s) -> %d chars",definition, def_count);
   gras_ddt_parse_pointer_string_init(definition);
 
   /* Do I have a typedef, or a raw struct ?*/