From a39e474fc6cb655d8184ae9fde46c7db1968aa5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 30 Mar 2024 14:35:02 +0100 Subject: [PATCH] checkpolicy: update error diagnostic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I am not sure what "hoge" supposed to mean; use a message similar to other diagnostics. Signed-off-by: Christian Göttsche Acked-by: James Carter --- checkpolicy/policy_define.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkpolicy/policy_define.c b/checkpolicy/policy_define.c index 92d1e5f2..4fc6c417 100644 --- a/checkpolicy/policy_define.c +++ b/checkpolicy/policy_define.c @@ -1426,7 +1426,7 @@ static int define_typebounds_helper(const char *bounds_id, const char *type_id) bounds = hashtab_search(policydbp->p_types.table, bounds_id); if (!bounds || bounds->flavor == TYPE_ATTRIB) { - yyerror2("hoge unknown type %s", bounds_id); + yyerror2("type %s is not declared", bounds_id); return -1; }