From d2f43eb97c019f161c5e93cba89ee9adf3ab389f Mon Sep 17 00:00:00 2001 From: suter Date: Tue, 8 Oct 2013 15:29:15 +0200 Subject: [PATCH] zu to PRIu64 (again) --- examples/msg/io/file.c | 7 ++++--- examples/msg/io/file_unlink.c | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/msg/io/file.c b/examples/msg/io/file.c index 733c24d0e3..ef7808f66f 100644 --- a/examples/msg/io/file.c +++ b/examples/msg/io/file.c @@ -24,6 +24,7 @@ #include #include "msg/msg.h" #include "surf/surf_private.h" +#include "inttypes.h" int host(int argc, char *argv[]); @@ -50,13 +51,13 @@ int host(int argc, char *argv[]) XBT_INFO("\tOpen file '%s'",file->fullname); read = MSG_file_read(file, 10000000); // Read for 10MB - XBT_INFO("\tHave read %zu on %s",read,file->fullname); + XBT_INFO("\tHave read %" PRIu64 " on %s",read,file->fullname); write = MSG_file_write(file, 100000); // Write for 100KB - XBT_INFO("\tHave written %zu on %s",write,file->fullname); + XBT_INFO("\tHave written %" PRIu64 " on %s",write,file->fullname); read = MSG_file_read(file, 110000); // Read for 110KB - XBT_INFO("\tHave read %zu on %s (of size %zu)",read,file->fullname, + XBT_INFO("\tHave read %" PRIu64 " on %s (of size %" PRIu64 ")",read,file->fullname, MSG_file_get_size(file)); XBT_INFO("\tClose file '%s'",file->fullname); diff --git a/examples/msg/io/file_unlink.c b/examples/msg/io/file_unlink.c index a604a18042..ec901daaef 100644 --- a/examples/msg/io/file_unlink.c +++ b/examples/msg/io/file_unlink.c @@ -21,6 +21,7 @@ #include #include "msg/msg.h" #include "surf/surf_private.h" +#include "inttypes.h" int host(int argc, char *argv[]); @@ -47,7 +48,7 @@ int host(int argc, char *argv[]) // Write into the new file write = MSG_file_write(file,100000); // Write for 100Ko - XBT_INFO("\tHave written %zu on %s",write,file->fullname); + XBT_INFO("\tHave written %" PRIu64 " on %s",write,file->fullname); // Close the file XBT_INFO("\tClose file '%s'",file->fullname); -- 2.20.1