Skip to content

Commit

Permalink
printf debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 12, 2024
1 parent 4af6e47 commit 2dce9a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,10 @@ instance_execute_init(struct exec_context *ctx)
}
fprintf(stderr, "initializing data segments\n");
for (i = 0; i < m->ndatas; i++) {
fprintf(stderr, "data segment %u/%u\n", (int)i, (int)m->ndatas);
const struct data *d = &m->datas[i];
if (d->mode != DATA_MODE_ACTIVE) {
fprintf(stderr, "skip segment %u\n", (int)i);
continue;
}
struct val val;
Expand Down

0 comments on commit 2dce9a6

Please sign in to comment.