Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more stringification/privatization
[simgrid.git] / src / instr / instr_paje_values.cpp
index 2c66f14..4d77238 100644 (file)
@@ -19,7 +19,7 @@ simgrid::instr::Value::Value(std::string name, std::string color, simgrid::instr
   this->id_    = std::to_string(instr_new_paje_id());
 
   father->values_.insert({name, this});
   this->id_    = std::to_string(instr_new_paje_id());
 
   father->values_.insert({name, this});
-  XBT_DEBUG("new value %s, child of %s", name_.c_str(), father_->name_);
+  XBT_DEBUG("new value %s, child of %s", name_.c_str(), father_->getCname());
   print();
 };
 
   print();
 };
 
@@ -42,10 +42,10 @@ simgrid::instr::Value* simgrid::instr::Value::byName(std::string name, Type* fat
   }
 
   if (father->kind_ == TYPE_VARIABLE)
   }
 
   if (father->kind_ == TYPE_VARIABLE)
-    THROWF(tracing_error, 0, "variables can't have different values (%s)", father->name_);
+    THROWF(tracing_error, 0, "variables can't have different values (%s)", father->getCname());
   auto ret = father->values_.find(name);
   if (ret == father->values_.end()) {
   auto ret = father->values_.find(name);
   if (ret == father->values_.end()) {
-    THROWF(tracing_error, 2, "value with name (%s) not found in father type (%s)", name.c_str(), father->name_);
+    THROWF(tracing_error, 2, "value with name (%s) not found in father type (%s)", name.c_str(), father->getCname());
   }
   return ret->second;
 }
   }
   return ret->second;
 }