X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/923c96522e059639b7722b35d033d79d9b0b5590..b283430cb109f0ef78eaeba48f8942b512c659d2:/src/simix/smx_host.cpp diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index 268d3c7757..bc6c5a7877 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -29,14 +29,17 @@ namespace simgrid { { /* Clean Simulator data */ if (xbt_swag_size(process_list) != 0) { - std::string msg = std::string("Shutting down host, but it's not empty:"); + char *msg = xbt_strdup("Shutting down host, but it's not empty:"); + char *tmp; smx_actor_t process = nullptr; xbt_swag_foreach(process, process_list) { - msg = msg + "\n\t" + process->name.c_str(); + tmp = bprintf("%s\n\t%s", msg, process->name.c_str()); + free(msg); + msg = tmp; } SIMIX_display_process_status(); - THROWF(arg_error, 0, "%s", msg.c_str()); + THROWF(arg_error, 0, "%s", msg); } for (auto arg : auto_restart_processes) delete arg; @@ -183,7 +186,7 @@ SIMIX_execution_start(smx_actor_t issuer, const char* name, double flops_amount, boost::intrusive_ptr SIMIX_execution_parallel_start(const char* name, int host_nb, sg_host_t* host_list, double* flops_amount, - double* bytes_amount, double rate, double timeout) + double* bytes_amount, double amount, double rate, double timeout) { /* alloc structures and initialize */