Skip to content

Commit

Permalink
host_func_dump_params: exit earlier unless logging is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jan 19, 2023
1 parent 2a43eb5 commit 51f7595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/host_instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ import_object_create_for_host_funcs(const struct host_module *modules,
void
host_func_dump_params(const struct functype *ft, const struct cell *params)
{
if (xlog_tracing == 0) {
return;
}
const struct resulttype *rt = &ft->parameter;
uint32_t i;
for (i = 0; i < rt->ntypes; i++) {
Expand Down

0 comments on commit 51f7595

Please sign in to comment.