Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Another %ld -> %zu fix.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 2 Feb 2012 20:56:08 +0000 (21:56 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 2 Feb 2012 21:00:08 +0000 (22:00 +0100)
examples/msg/io/file.c

index c490eb0..ed5ed3a 100644 (file)
@@ -21,10 +21,10 @@ int host(int argc, char *argv[])
   XBT_INFO("Host '%s' open %p",MSG_host_get_name(MSG_host_self()), file);
 
   size_t read = MSG_file_read(NULL,0,0,file);
-  XBT_INFO("Host '%s' read %ld",MSG_host_get_name(MSG_host_self()),read);
+  XBT_INFO("Host '%s' read %zu", MSG_host_get_name(MSG_host_self()), read);
 
   size_t write = MSG_file_write(NULL,0,0,file);
-  XBT_INFO("Host '%s' write %ld",MSG_host_get_name(MSG_host_self()), write);
+  XBT_INFO("Host '%s' write %zu", MSG_host_get_name(MSG_host_self()), write);
 
   int res = MSG_file_stat(0,NULL);
   XBT_INFO("Host '%s' stat %d",MSG_host_get_name(MSG_host_self()), res);