diff mbox series

[2/2] checkpolicy: update error diagnostic

Message ID 20240330133502.72795-2-cgoettsche@seltendoof.de (mailing list archive)
State Accepted
Commit a39e474fc6cb
Delegated to: Petr Lautrbach
Headers show
Series [1/2] checkpolicy: free identifiers on invalid typebounds | expand

Commit Message

Christian Göttsche March 30, 2024, 1:35 p.m. UTC
From: Christian Göttsche <cgzones@googlemail.com>

I am not sure what "hoge" supposed to mean; use a message similar to
other diagnostics.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 checkpolicy/policy_define.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;
 	}