aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/IA5String.c
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-08-22 13:47:59 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-08-22 13:47:59 +0000
commit758530a066ccc6414b36b7606ebac85c00d3c04c (patch)
tree0b97dab1afad50a95d7c1473954f1f21de0677e0 /skeletons/IA5String.c
parent7e20dfc61cc750e4d995eee4e427d0d4b478401e (diff)
better constraint failure reporting
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@196 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons/IA5String.c')
-rw-r--r--skeletons/IA5String.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/skeletons/IA5String.c b/skeletons/IA5String.c
index a44a9d0f..e3ae82fe 100644
--- a/skeletons/IA5String.c
+++ b/skeletons/IA5String.c
@@ -43,17 +43,18 @@ IA5String_constraint(asn1_TYPE_descriptor_t *td, const void *sptr,
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;
}