X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a3a56ef3595742d429fcfa43f66efde47ddfd25f..db48e15b05b08c3ce9dff4c267b0116ac3e445ee:/src/smpi/internals/smpi_global.cpp 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;