better constraint failure reporting
diff --git a/skeletons/IA5String.c b/skeletons/IA5String.c
index a44a9d0..e3ae82f 100644
--- a/skeletons/IA5String.c
+++ b/skeletons/IA5String.c
@@ -43,17 +43,18 @@
if(*buf > 0x7F) {
_ASN_ERRLOG(app_errlog, app_key,
"%s: value byte %d out of range: "
- "%d > 127",
+ "%d > 127 (%s:%d)",
td->name,
(buf - st->buf) + 1,
- *buf
- );
+ *buf,
+ __FILE__, __LINE__);
return -1;
}
}
} else {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value not given", td->name);
+ "%s: value not given (%s:%d)",
+ td->name, __FILE__, __LINE__);
return -1;
}