From: Augustin Degomme Date: Mon, 18 Jun 2018 18:46:57 +0000 (+0200) Subject: try to find a portable way to print off_t X-Git-Tag: v3.20~78 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/db48e15b05b08c3ce9dff4c267b0116ac3e445ee try to find a portable way to print off_t --- 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;