rt: Don't double-print commas when logging e.g. a vec of boxes
This commit is contained in:
parent
a10a6daba3
commit
87c6416d0c
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user