From db48e15b05b08c3ce9dff4c267b0116ac3e445ee Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 18 Jun 2018 20:46:57 +0200 Subject: [PATCH 1/1] try to find a portable way to print off_t --- src/smpi/internals/smpi_global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index 0c709b15d7..fa3c3c95c0 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -597,7 +597,7 @@ int smpi_main(const char* executable, int argc, char *argv[]) pad=libname.length(); target_lib = std::string(pad - std::to_string(rank).length(), '0') +std::to_string(rank)+libname.substr(pad); - XBT_DEBUG("copy lib %s to %s, with size %ld", libpath.c_str(), target_lib.c_str(), fdin_size2); + XBT_DEBUG("copy lib %s to %s, with size %lld", libpath.c_str(), target_lib.c_str(), (long long)fdin_size2); smpi_copy_file(libpath, target_lib, fdin_size2, rank); std::string sedcommand = "sed -i -e 's/"+libname+"/"+target_lib+"/g' "+target_executable; -- 2.20.1