portability

diff --git a/skeletons/IA5String.c b/skeletons/IA5String.c
index 7fcb194..c520bb2 100644
--- a/skeletons/IA5String.c
+++ b/skeletons/IA5String.c
@@ -40,7 +40,8 @@
 		 */
 		for(; buf < end; buf++) {
 			if(*buf > 0x7F) {
-				_ASN_ERRLOG("%s: value byte %d out of range: "
+				_ASN_ERRLOG(app_errlog, app_key,
+					"%s: value byte %d out of range: "
 					"%d > 127",
 					td->name,
 					(buf - st->buf) + 1,
@@ -50,7 +51,8 @@
 			}
 		}
 	} else {
-		_ASN_ERRLOG("%s: value not given", td->name);
+		_ASN_ERRLOG(app_errlog, app_key,
+			"%s: value not given", td->name);
 		return -1;
 	}