Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not do useless and potentially harmful debug messages in datadesc_postexit
[simgrid.git] / src / xbt / datadesc / datadesc.c
index 6942b24..40856a5 100644 (file)
@@ -170,10 +170,8 @@ void xbt_datadesc_preinit(void)
  **/
 void xbt_datadesc_postexit(void)
 {
-  XBT_VERB("Exiting DataDesc");
   xbt_set_free(&xbt_datadesc_set_local);
   xbt_dict_free(&xbt_dd_constants);
-  XBT_DEBUG("Exited DataDesc");
 }
 
 /** This is mainly to debug */
@@ -227,7 +225,7 @@ void xbt_datadesc_type_dump(const xbt_datadesc_type_t ddt)
 
   printf("  alignment[");
   for (cpt = 0; cpt < xbt_arch_count; cpt++) {
-    printf("%s%s%ld%s",
+    printf("%s%s%lu%s",
            cpt > 0 ? ", " : "",
            cpt == GRAS_THISARCH ? ">" : "",
            ddt->alignment[cpt], cpt == GRAS_THISARCH ? "<" : "");
@@ -236,7 +234,7 @@ void xbt_datadesc_type_dump(const xbt_datadesc_type_t ddt)
 
   printf("  aligned_size[");
   for (cpt = 0; cpt < xbt_arch_count; cpt++) {
-    printf("%s%s%ld%s",
+    printf("%s%s%lu%s",
            cpt > 0 ? ", " : "",
            cpt == GRAS_THISARCH ? ">" : "",
            ddt->aligned_size[cpt], cpt == GRAS_THISARCH ? "<" : "");
@@ -248,10 +246,10 @@ void xbt_datadesc_type_dump(const xbt_datadesc_type_t ddt)
 
     struct_data = ddt->category.struct_data;
     xbt_dynar_foreach(struct_data.fields, cpt, field) {
-      printf(">>> Dump field #%d (%s) (offset=%ld)\n",
+      printf(">>> Dump field #%u (%s) (offset=%ld)\n",
              cpt, field->name, field->offset[GRAS_THISARCH]);
       xbt_datadesc_type_dump(field->type);
-      printf("<<< end dump field #%d (%s)\n", cpt, field->name);
+      printf("<<< end dump field #%u (%s)\n", cpt, field->name);
     }
   }
   fflush(stdout);