diff options
author | Lev Walkin <vlm@lionet.info> | 2004-08-22 13:47:59 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2004-08-22 13:47:59 +0000 |
commit | 16835b66d44ba35cf1b1f671de133e39d716a848 (patch) | |
tree | 0b97dab1afad50a95d7c1473954f1f21de0677e0 /skeletons/NumericString.c | |
parent | 730b15a2e49811d061b10bdb3a32dcafbae195f1 (diff) |
better constraint failure reporting
Diffstat (limited to 'skeletons/NumericString.c')
-rw-r--r-- | skeletons/NumericString.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/skeletons/NumericString.c b/skeletons/NumericString.c index 6c8729ff..aba1c72b 100644 --- a/skeletons/NumericString.c +++ b/skeletons/NumericString.c @@ -48,17 +48,18 @@ NumericString_constraint(asn1_TYPE_descriptor_t *td, const void *sptr, continue; } _ASN_ERRLOG(app_errlog, app_key, - "%s: value byte %d " - "not in NumericString alphabet (%d)", + "%s: value byte %d (%d) " + "not in NumericString alphabet (%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; } |