diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/serialize.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc index 6144c97d0..c90f1694e 100644 --- a/sim/serialize.cc +++ b/sim/serialize.cc @@ -100,8 +100,9 @@ Serializeable::childOut(const string &name, Serializeable *child) void Serializeable::setName(const string &name) { - if (objName != "") - panic("Cannot change object name"); + if (objName != "") { + cprintf("Renaming object '%s' to '%s'.\n", objName, name); + } objName = name; } @@ -160,7 +161,7 @@ Serializer::serialize(const string &f) add_objects(); while (!objects.empty()) { Serializeable *serial = objects.front(); - DPRINTF(Serialize, "Name Children of %s\n", serial->name()); + DPRINTF(Serialize, "Naming children of %s\n", serial->name()); serial->nameChildren(); objects.pop_front(); list.push_back(serial); @@ -174,7 +175,7 @@ Serializer::serialize(const string &f) add_objects(); while (!objects.empty()) { Serializeable *serial = objects.front(); - DPRINTF(Serialize, "Name Children of %s\n", serial->name()); + DPRINTF(Serialize, "Serializing %s\n", serial->name()); serial->serialize(); objects.pop_front(); list.push_back(serial); |