From a867ec76aa199973fba6cce61b3a492d9df8b6b2 Mon Sep 17 00:00:00 2001 From: minfrin Date: Mon, 3 Oct 2022 15:25:20 +0100 Subject: [PATCH] Add human readable name of chain state to info message (develop) 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. --- openarc/openarc.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/openarc/openarc.c b/openarc/openarc.c index 7e191dc1..ea8e8847 100644 --- a/openarc/openarc.c +++ b/openarc/openarc.c @@ -3705,16 +3705,15 @@ mlfi_eom(SMFICTX *ctx) break; } + arc_set_cv(afc->mctx_arcmsg, + cv); + if (conf->conf_dolog) { syslog(LOG_INFO, - "%s: chain state forced to %d due to prior result found", - afc->mctx_jobid, - cv); + "%s: chain state forced to \"%s\" due to prior result found", + afc->mctx_jobid, arc_chain_status_str(afc->mctx_arcmsg)); } - - arc_set_cv(afc->mctx_arcmsg, - cv); } if (arcf_dstring_len(afc->mctx_tmpstr) > 0)