portability


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@97 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/UTF8String.c b/skeletons/UTF8String.c
index 6b40b25..06e1559 100644
--- a/skeletons/UTF8String.c
+++ b/skeletons/UTF8String.c
@@ -60,7 +60,8 @@
 			int w = _UTF8String_h1[ch >> 4];
 			if(want) {	/* Continuation expected */
 				if(w) {
-					_ASN_ERRLOG("%s: UTF-8 expectation "
+					_ASN_ERRLOG(app_errlog, app_key,
+						"%s: UTF-8 expectation "
 						"failed at byte %d",
 						opt_type_name,
 						(buf - st->buf) + 1);
@@ -75,7 +76,7 @@
 						break;
 					/* Fall through */
 				case 0:
-					_ASN_ERRLOG(
+					_ASN_ERRLOG(app_errlog, app_key,
 						"%s: UTF-8 expectation"
 						"failed at byte %d",
 						opt_type_name,
@@ -89,14 +90,16 @@
 
 		/* If still want something, then something is wrong */
 		if(want) {
-			_ASN_ERRLOG("%s: truncated UTF-8 sequence",
+			_ASN_ERRLOG(app_errlog, app_key,
+				"%s: truncated UTF-8 sequence",
 				opt_type_name);
 			return -1;
 		}
 
 		return length;
 	} else {
-		_ASN_ERRLOG("%s: value not given", opt_type_name);
+		_ASN_ERRLOG(app_errlog, app_key,
+			"%s: value not given", opt_type_name);
 		return -1;
 	}
 }