- simgrid::kernel::routing::NetCard * nc = host->pimpl_netcard;
- std::printf(" - Seen: \"%s\". Type: %s\n", host->cname(),
- nc->isRouter() ? "router" : (nc->isNetZone() ? "netzone" : (nc->isHost() ? "host" : "buggy")));
+ simgrid::kernel::routing::NetPoint* nc = host->pimpl_netpoint;
+ const char *type = "buggy";
+ if (nc->isRouter())
+ type = "router";
+ if (nc->isNetZone())
+ type = "netzone";
+ if (nc->isHost())
+ type = "host";
+ std::printf(" - Seen: \"%s\". Type: %s\n", host->getCname(), type);