-#include "hostdata.h"
-
#include <cstring>
#include <algorithm>
#include <stdexcept>
#include <xbt/log.h>
#include <xbt/sysdep.h>
+
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main);
+
#include "misc.h"
#include "options.h"
-XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main);
+#include "hostdata.h"
std::vector<hostdata> hostdata::hosts;
e_xbt_log_priority_t logp = xbt_log_priority_verbose;
if (!LOG_ISENABLED(logp))
return;
- LOG1(logp, "Got %lu hosts.", (unsigned long)hosts.size());
+ XBT_LOG(logp, "Got %lu hosts.", (unsigned long)hosts.size());
for (int i = 0; i < nhosts; i++) {
- LOG2(logp, "Host #%d named \"%s\".", i, hosts[i].get_name());
+ XBT_LOG(logp, "Host #%d named \"%s\".", i, hosts[i].get_name());
}
}