better constraint failure reporting
diff --git a/skeletons/constr_CHOICE.c b/skeletons/constr_CHOICE.c
index 1f863fe..4ac71a6 100644
--- a/skeletons/constr_CHOICE.c
+++ b/skeletons/constr_CHOICE.c
@@ -481,7 +481,8 @@
if(!sptr) {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value not given", td->name);
+ "%s: value not given (%s:%d)",
+ td->name, __FILE__, __LINE__);
return -1;
}
@@ -515,7 +516,8 @@
}
} else {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: no CHOICE element given", td->name);
+ "%s: no CHOICE element given",
+ td->name, __FILE__, __LINE__);
return -1;
}
}