if (data_comm)
XBT_WARN("data_comm is pending!");
if (!received.empty())
- XBT_WARN("lost %lu received message%s!",
- (unsigned long )received.size(), ESSE(received.size()));
+ XBT_WARN("lost %zu received message%s!",
+ received.size(), ESSE(received.size()));
if (!sent_comm.empty())
- XBT_WARN("lost %lu sent message%s!",
- (unsigned long )sent_comm.size(), ESSE(sent_comm.size()));
+ XBT_WARN("lost %zu sent message%s!",
+ sent_comm.size(), ESSE(sent_comm.size()));
xbt_cond_destroy(cond);
xbt_mutex_destroy(mutex);
// here width == ceil(sqrt(size))
unsigned first_on_last_line = (size() - 1) - (size() - 1) % width;
- XBT_DEBUG("torus size = %u ; width = %u ; height = %u ; foll = %u",
- (unsigned )size(), width,
- (unsigned )(size() / width + !!(size() % width)),
+ XBT_DEBUG("torus size = %zu ; width = %u ; height = %zu ; foll = %u",
+ size(), width, size() / width + !!(size() % width),
first_on_last_line);
for (unsigned i = 0; i < size(); i++) {
unsigned next_line;
e_xbt_log_priority_t logp = xbt_log_priority_verbose;
if (!LOG_ISENABLED(logp))
return;
- XBT_LOG(logp, "Got %lu hosts.", (unsigned long)hosts.size());
+ XBT_LOG(logp, "Got %zu hosts.", hosts.size());
for (int i = 0; i < nhosts; i++) {
XBT_LOG(logp, "Host #%d named \"%s\".", i, hosts[i].get_name());
}
if (!opt::auto_depl::nhosts)
opt::auto_depl::nhosts = hostdata::size();
if (opt::auto_depl::nhosts > hostdata::size()) {
- XBT_WARN("%u hosts is too much: limiting to %u",
- opt::auto_depl::nhosts, (unsigned )hostdata::size());
+ XBT_WARN("%u hosts is too much: limiting to %zu",
+ opt::auto_depl::nhosts, hostdata::size());
opt::auto_depl::nhosts = hostdata::size();
}
if (!opt::auto_depl::load)
finalizing = true;
total_load_running -= real_load;
- XBT_DEBUG("send CLOSE to %lu neighbor%s",
- (unsigned long )neigh.size(), ESSE(neigh.size()));
+ XBT_DEBUG("send CLOSE to %zu neighbor%s", neigh.size(), ESSE(neigh.size()));
std::for_each(neigh.begin(), neigh.end(),
bind(&process::finalize1, this, _1));