rt: Don't double-print commas when logging e.g. a vec of boxes

This commit is contained in:
Patrick Walton 2011-09-08 13:23:06 -07:00
parent a10a6daba3
commit 87c6416d0c
2 changed files with 4 additions and 0 deletions

View File

@ -440,6 +440,7 @@ log::walk_string(const std::pair<ptr,ptr> &data) {
void
log::walk_struct(const uint8_t *end_sp) {
out << prefix << "(";
prefix = "";
bool first = true;
while (sp != end_sp) {

View File

@ -984,16 +984,19 @@ private:
void walk_box() {
out << prefix << "@";
prefix = "";
data<log,ptr>::walk_box_contents();
}
void walk_fn() {
out << prefix << "fn";
prefix = "";
data<log,ptr>::walk_fn_contents(dp);
}
void walk_obj() {
out << prefix << "obj";
prefix = "";
data<log,ptr>::walk_obj_contents(dp);
}