X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/34583def1c54827e97619e88ab9a7f2916a6c2b0..d07491b881cc0dd542507d598e1099f178b79c59:/src/s4u/s4u_Host.cpp diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 5e6879cbbb..95002eda7b 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -31,7 +31,7 @@ simgrid::xbt::signal Host::on_speed_change; Host::Host(std::string name) : name_(std::move(name)) { - xbt_assert(Host::by_name_or_null(name_) == nullptr, "Refusing to create a second host named '%s'.", name_.c_str()); + xbt_assert(Host::by_name_or_null(name_) == nullptr, "Refusing to create a second host named '%s'.", get_cname()); Engine::get_instance()->host_register(std::string(name_), this); new simgrid::surf::HostImpl(this); }