- xbt_dict_t props = storage->properties();
- if (xbt_dict_length(props) > 0) {
- XBT_INFO("\tProperties of mounted storage: %s", storage->name());
-
- 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);
+ std::map<std::string, std::string>* props = storage->getProperties();
+ if (not props->empty()) {
+ XBT_INFO("\tProperties of mounted storage: %s", storage->get_cname());
+
+ for (auto const& elm : *props) {
+ XBT_INFO(" %s->%s", elm.first.c_str(), elm.second.c_str());
+ }