From d65f3abb5e6bdb5ab5eccb0e380916983c412c2c Mon Sep 17 00:00:00 2001 From: suter Date: Sat, 5 Oct 2013 16:12:27 +0200 Subject: [PATCH] use proper format --- teshsuite/msg/storage/storage.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/teshsuite/msg/storage/storage.c b/teshsuite/msg/storage/storage.c index 33dfab5b35..e15baad471 100644 --- a/teshsuite/msg/storage/storage.c +++ b/teshsuite/msg/storage/storage.c @@ -1,5 +1,6 @@ #include "msg/msg.h" #include "xbt/log.h" +#include "inttypes.h" 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_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."); } } -- 2.20.1