Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use proper format
authorsuter <frederic.suter@cc.in2p3.fr>
Sat, 5 Oct 2013 14:12:27 +0000 (16:12 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Sun, 6 Oct 2013 16:41:03 +0000 (18:41 +0200)
teshsuite/msg/storage/storage.c

index 33dfab5..e15baad 100644 (file)
@@ -1,5 +1,6 @@
 #include "msg/msg.h"
 #include "xbt/log.h"
 #include "msg/msg.h"
 #include "xbt/log.h"
+#include "inttypes.h"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(storage,"Messages specific for this simulation");
 
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(storage,"Messages specific for this simulation");
 
@@ -128,9 +129,9 @@ void display_storage_content(msg_storage_t storage){
   xbt_dict_t content = MSG_storage_get_content(storage);
   if (content){
     xbt_dict_foreach(content, cursor, file, size)
   xbt_dict_t content = MSG_storage_get_content(storage);
   if (content){
     xbt_dict_foreach(content, cursor, file, size)
-         XBT_INFO("%s size: %zu bytes", file, size);
-  }else{
-       XBT_INFO("No content.");
+    XBT_INFO("%s size: %" PRIu64 "bytes", file, size);
+  } else {
+    XBT_INFO("No content.");
   }
 }
 
   }
 }