Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix miscasted logging arguments
[simgrid.git] / src / gras / DataDesc / ddt_parse.c
index 6745833..3a3073e 100644 (file)
@@ -277,9 +277,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 +306,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",
@@ -404,6 +404,7 @@ static gras_datadesc_type_t *parse_struct(char *definition) {
       free(field.type_name);
     }
   }
+  gras_datadesc_declare_struct_close(struct_type);
   if (errcode != mismatch_error)
     return NULL; /* FIXME: LEAK! */