X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/31c945abb3695de05d70ddfd8539a14cb098a3b6..18bee871381a6ce670d9da211f43ab9b55fdc350:/teshsuite/simdag/is-router/is-router.cpp diff --git a/teshsuite/simdag/is-router/is-router.cpp b/teshsuite/simdag/is-router/is-router.cpp index 3c963c99f8..b03de1f8b4 100644 --- a/teshsuite/simdag/is-router/is-router.cpp +++ b/teshsuite/simdag/is-router/is-router.cpp @@ -23,7 +23,7 @@ int main(int argc, char **argv) sg_host_t host; xbt_dynar_foreach(hosts, it, host) { simgrid::kernel::routing::NetCard * nc = host->pimpl_netcard; - printf(" - Seen: \"%s\". Type: %s\n", host->name().c_str(), nc->isRouter() ? "router" : (nc->isAS()?"AS":"host")); + printf(" - Seen: \"%s\". Type: %s\n", host->cname(), nc->isRouter() ? "router" : (nc->isAS() ? "AS" : "host")); } xbt_dynar_free(&hosts);