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 3048a66 commit 582dfab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ instance_create(struct mem_context *mctx, const struct module *m,
struct instance *inst;
int ret;

fprintf(stderr, "calling instance_create_no_init\n");
ret = instance_create_no_init(mctx, m, &inst, imports, report);
fprintf(stderr, "instance_create_no_init returned %d\n", ret);
if (ret != 0) {
return ret;
}
Expand All @@ -358,8 +360,11 @@ instance_create(struct mem_context *mctx, const struct module *m,
ctx = &ctx0;
exec_context_init(ctx, inst, mctx);
ctx->report = report;
fprintf(stderr, "calling instance_execute_init\n");
ret = instance_execute_init(ctx);
fprintf(stderr, "instance_execute_handle_restart\n");
ret = instance_execute_handle_restart(ctx, ret);
fprintf(stderr, "result %d\n", ret);
exec_context_clear(ctx);
if (ret != 0) {
instance_destroy(inst);
Expand Down

0 comments on commit 582dfab

Please sign in to comment.