From: Frederic Suter Date: Fri, 23 Nov 2018 17:45:50 +0000 (+0100) Subject: (#318) should please pj_dump X-Git-Tag: v3_22~778 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7572222a48f97d1246757d25e3f1eed7b7d07456?ds=sidebyside (#318) should please pj_dump still have to correct some of the displayed information --- diff --git a/src/instr/instr_paje_events.cpp b/src/instr/instr_paje_events.cpp index aef50ebd2d..601276be3b 100644 --- a/src/instr/instr_paje_events.cpp +++ b/src/instr/instr_paje_events.cpp @@ -65,7 +65,7 @@ void LinkEvent::print() stream_ << " " << value_ << " " << endpoint_->get_id() << " " << key_; - if (TRACE_display_sizes()) + if (TRACE_display_sizes() && size_ != -1) stream_ << " " << size_; XBT_DEBUG("Dump %s", stream_.str().c_str()); @@ -91,7 +91,7 @@ void StateEvent::print() stream_ << " " << value->get_id(); if (TRACE_display_sizes()) - stream_ << " " << ((extra_ != nullptr) ? extra_->display_size() : "0"); + stream_ << " " << ((extra_ != nullptr) ? extra_->display_size() : ""); #if HAVE_SMPI if (simgrid::config::get_value("smpi/trace-call-location")) {