more logging
diff --git a/libasn1fix/asn1fix_constraint.c b/libasn1fix/asn1fix_constraint.c
index 3f30009..8c6c73c 100644
--- a/libasn1fix/asn1fix_constraint.c
+++ b/libasn1fix/asn1fix_constraint.c
@@ -238,10 +238,12 @@
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 53d4640..e35ecad 100644
--- a/libasn1fix/asn1fix_crange.c
+++ b/libasn1fix/asn1fix_crange.c
@@ -326,7 +326,7 @@
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;