Skip to content

Commit

Permalink
import_object_create_for_host_funcs: log error number
Browse files Browse the repository at this point in the history
XXX maybe we should remove these xlog_error calls in libraries
  • Loading branch information
yamt committed Jun 16, 2024
1 parent e829ca4 commit fbe8651
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/host_instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ import_object_create_for_host_funcs(struct mem_context *mctx,
struct functype *ft;
ret = functype_from_string(mctx, func->type, &ft);
if (ret != 0) {
xlog_error("failed to parse functype: %s",
func->type);
xlog_error("failed to parse functype %s with "
"error %d",
func->type, ret);
goto fail;
}
struct funcinst *fi = &fis[idx];
Expand Down

0 comments on commit fbe8651

Please sign in to comment.