X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6be248713757287eb951054a63c9f251d52ee0a..9caf173e476622d309cc5653a83d224d05787cc7:/examples/s4u/io-file-system/s4u-io-file-system.cpp diff --git a/examples/s4u/io-file-system/s4u-io-file-system.cpp b/examples/s4u/io-file-system/s4u-io-file-system.cpp index 832d267821..52311394eb 100644 --- a/examples/s4u/io-file-system/s4u-io-file-system.cpp +++ b/examples/s4u/io-file-system/s4u-io-file-system.cpp @@ -15,14 +15,14 @@ class MyHost { public: void show_info(std::unordered_map const& mounts) { - XBT_INFO("Storage info on %s:", simgrid::s4u::Host::current()->getCname()); + XBT_INFO("Storage info on %s:", simgrid::s4u::Host::current()->get_cname()); for (auto const& kv : mounts) { std::string mountpoint = kv.first; simgrid::s4u::Storage* storage = kv.second; // Retrieve disk's information - XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", storage->getCname(), mountpoint.c_str(), + XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", storage->get_cname(), mountpoint.c_str(), sg_storage_get_size_used(storage), sg_storage_get_size_free(storage), sg_storage_get_size(storage)); } } @@ -71,7 +71,7 @@ public: delete file; // Now attach some user data to disk1 - XBT_INFO("Get/set data for storage element: %s", storage->getCname()); + XBT_INFO("Get/set data for storage element: %s", storage->get_cname()); XBT_INFO(" Uninitialized storage data: '%s'", static_cast(storage->getUserdata())); storage->setUserdata(new std::string("Some user data"));