X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aca4da8cb1bb25e12e60da1d20be4d0882e5ee8e..d1a82dae27086cc6f9ea4e0163d2941c74135c94:/teshsuite/s4u/storage_client_server/storage_client_server.cpp?ds=inline diff --git a/teshsuite/s4u/storage_client_server/storage_client_server.cpp b/teshsuite/s4u/storage_client_server/storage_client_server.cpp index db4614c31e..7d71f9365d 100644 --- a/teshsuite/s4u/storage_client_server/storage_client_server.cpp +++ b/teshsuite/s4u/storage_client_server/storage_client_server.cpp @@ -10,15 +10,13 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(storage, "Messages specific for this simulation"); static void display_storage_properties(simgrid::s4u::Storage* storage) { - xbt_dict_t props = storage->getProperties(); - if (xbt_dict_length(props) > 0) { + std::unordered_map* props = storage->getProperties(); + if (not props->empty()) { XBT_INFO("\tProperties of mounted storage: %s", storage->getName()); - xbt_dict_cursor_t cursor = NULL; - char* key; - char* data; - xbt_dict_foreach (props, cursor, key, data) - XBT_INFO("\t\t'%s' -> '%s'", key, data); + for (auto elm : *props) { + XBT_INFO(" %s->%s", elm.first.c_str(), elm.second.c_str()); + } } else { XBT_INFO("\tNo property attached."); }