Skip to content

Commit 31afd2e

Browse files
minfrinflowerysong
authored andcommitted
Add human readable name of chain state to info message
The message "chain state forced to 1 due to prior result found" contains an internal enum index rather than the name of the chain state. Replace with the human readable meaning. trusteddomainproject/OpenARC#158
1 parent fe6a4dc commit 31afd2e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

openarc/openarc.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3707,16 +3707,15 @@ mlfi_eom(SMFICTX *ctx)
37073707
break;
37083708
}
37093709

3710+
arc_set_cv(afc->mctx_arcmsg,
3711+
cv);
3712+
37103713
if (conf->conf_dolog)
37113714
{
37123715
syslog(LOG_INFO,
3713-
"%s: chain state forced to %d due to prior result found",
3714-
afc->mctx_jobid,
3715-
cv);
3716+
"%s: chain state forced to \"%s\" due to prior result found",
3717+
afc->mctx_jobid, arc_chain_status_str(afc->mctx_arcmsg));
37163718
}
3717-
3718-
arc_set_cv(afc->mctx_arcmsg,
3719-
cv);
37203719
}
37213720

37223721
if (arcf_dstring_len(afc->mctx_tmpstr) > 0)

0 commit comments

Comments
 (0)