better constraint failure reporting
diff --git a/skeletons/PrintableString.c b/skeletons/PrintableString.c
index 8f67edd..17be2ae 100644
--- a/skeletons/PrintableString.c
+++ b/skeletons/PrintableString.c
@@ -66,18 +66,20 @@
for(; buf < end; buf++) {
if(!_PrintableString_alphabet[*buf]) {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value byte %d "
- "not in PrintableString alphabet (%d)",
+ "%s: value byte %d (%d) "
+ "not in PrintableString alphabet "
+ "(%s:%d)",
td->name,
(buf - st->buf) + 1,
*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;
}