aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/IA5String.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-08-22 13:47:59 +0000
committerLev Walkin <vlm@lionet.info>2004-08-22 13:47:59 +0000
commit16835b66d44ba35cf1b1f671de133e39d716a848 (patch)
tree0b97dab1afad50a95d7c1473954f1f21de0677e0 /skeletons/IA5String.c
parent730b15a2e49811d061b10bdb3a32dcafbae195f1 (diff)
better constraint failure reporting
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;
}