Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix printf format strings.
[simgrid.git] / tools / gras / struct_diff.c
index 7cc2c3e..edb9aec 100644 (file)
@@ -127,7 +127,7 @@ int main(int argc, char** argv) {
     exit(1);
   }
 
-  parse_from_file("s_smx_simcall_t");
+//  parse_from_file("s_smx_simcall_t");
   parse_from_file(argv[1]);
 
   int cpt;
@@ -144,14 +144,14 @@ int main(int argc, char** argv) {
       if (field->offset[GRAS_THISARCH]<= offset&&
           field->offset[GRAS_THISARCH]+field->type->size[GRAS_THISARCH] >= offset) {
         found = 1;
-        printf("This offset is somewhere in field %s, which starts at offset %zu and is of size %zu\n",
+        printf("This offset is somewhere in field %s, which starts at offset %ld and is of size %ld\n",
               field->name,field->offset[GRAS_THISARCH],field->type->size[GRAS_THISARCH]);
 
       }
     }
     if (!found) {
 
-      printf("Damnit, the structure is too short to find the the field (last field %s was at offset %zu, with size %zu). Weird.\n",
+      printf("Damnit, the structure is too short to find the the field (last field %s was at offset %ld, with size %ld). Weird.\n",
           field->name,field->offset[GRAS_THISARCH],field->type->size[GRAS_THISARCH]);
     }
   }