Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fp => fd (for file descriptor)
[simgrid.git] / examples / msg / io / file.c
index 6a6cc80..3fca676 100644 (file)
@@ -56,7 +56,8 @@ int host(int argc, char *argv[])
   XBT_INFO("\tHave written %zu on %s",write,file->name);
 
   read = MSG_file_read(ptr,110000,sizeof(char*),file);     // Read for 110KB
-  XBT_INFO("\tHave read    %zu on %s",read,file->name);
+  XBT_INFO("\tHave read    %zu on %s (of size %zu)",read,file->name,
+      MSG_file_get_size(file));
 
   XBT_INFO("\tClose file '%s'",file->name);
   MSG_file_close(file);