From 5120420f7bc4fd6a8a797744c8e91b6d08368363 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 3 Jun 2021 03:23:23 +0300 Subject: [PATCH 57/57] is_universal_needed(): Display action name along "Action Enabler" When action enabler requires universal, list it with the action name, not just by generic "Action Enabler" string. See osdn #42464 Signed-off-by: Marko Lindqvist --- tools/ruledit/validity.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/ruledit/validity.c b/tools/ruledit/validity.c index 6ef1872aca..71b35c88d6 100644 --- a/tools/ruledit/validity.c +++ b/tools/ruledit/validity.c @@ -117,7 +117,11 @@ static bool is_universal_needed(struct universal *uni, requirers_cb cb, uni) || universal_is_mentioned_by_requirements(&(enabler->target_reqs), uni)) { - cb(R__("Action Enabler"), data); + char buf[1024]; + + fc_snprintf(buf, sizeof(buf), R__("%s action enabler"), + action_id_rule_name(enabler->action)); + cb(buf, data); needed = TRUE; } } action_enabler_list_re_iterate_end; -- 2.30.2