From fd97d5ecac227a7896d59c2d37e994739acf332a Mon Sep 17 00:00:00 2001
From: Lev Walkin <vlm@lionet.info>
Date: Wed, 15 Sep 2004 11:45:44 +0000
Subject: [PATCH] more logging

---
 libasn1fix/asn1fix_constraint.c | 6 ++++--
 libasn1fix/asn1fix_crange.c     | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/libasn1fix/asn1fix_constraint.c b/libasn1fix/asn1fix_constraint.c
index 3f30009e..8c6c73ca 100644
--- a/libasn1fix/asn1fix_constraint.c
+++ b/libasn1fix/asn1fix_constraint.c
@@ -238,10 +238,12 @@ _constraint_value_resolve(arg_t *arg, asn1p_module_t *mod, asn1p_value_t **value
 
 	tmp_expr = asn1f_lookup_symbol(arg, mod, (*value)->value.reference);
 	if(tmp_expr == NULL) {
-		FATAL("Cannot find symbol %s "
+		FATAL("Cannot find symbol %s (%s) "
 			"used in %s subtype constraint at line %d",
 			asn1f_printable_reference((*value)->value.reference),
-			arg->expr->Identifier, arg->expr->_lineno);
+			mod->Identifier,
+			arg->expr->Identifier,
+			arg->expr->_lineno);
 		assert((*value)->type == ATV_REFERENCED);
 		return -1;
 	}
diff --git a/libasn1fix/asn1fix_crange.c b/libasn1fix/asn1fix_crange.c
index 53d46407..e35ecad2 100644
--- a/libasn1fix/asn1fix_crange.c
+++ b/libasn1fix/asn1fix_crange.c
@@ -326,7 +326,7 @@ static int _range_fill(asn1p_value_t *val, const asn1cnst_range_t *minmax, asn1c
 			return 0;
 		break;
 	case ATV_REFERENCED:
-		FATAL("Unrecognized constraint element \"%s\" at line %d",
+		FATAL("Unresolved constraint element \"%s\" at line %d",
 			asn1f_printable_reference(val->value.reference),
 			lineno);
 		return -1;
-- 
GitLab