ASN_ERRLOG api changed


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@105 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index 5b9bf7c..197ce1f 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -1408,7 +1408,8 @@
 
 	OUT("if(!sptr) {\n");
 	INDENT(+1);
-		OUT("_ASN_ERRLOG(\"%%s: value not given\", td->name);\n");
+		OUT("_ASN_ERRLOG(app_errlog, app_key,\n");
+		OUT("\t\"%%s: value not given\", td->name);\n");
 		OUT("return -1;\n");
 	INDENT(-1);
 	OUT("}\n");
@@ -1426,7 +1427,8 @@
 	INDENTED(OUT("/* Constraint check succeeded */\n"));
 	OUT("} else {\n");
 	INDENT(+1);
-		OUT("_ASN_ERRLOG(\"%%s: constraint failed\", td->name);\n");
+		OUT("_ASN_ERRLOG(app_errlog, app_key,\n");
+		OUT("\t\"%%s: constraint failed\", td->name);\n");
 		OUT("return -1;\n");
 	INDENT(-1);
 	OUT("}\n");
@@ -1979,8 +1981,8 @@
 		} else {
 			OUT("if(asn1_INTEGER2long(st, &value)) {\n");
 			INDENT(+1);
-			OUT("_ASN_ERRLOG(\"%%s: value too large\", "
-				"td->name);\n");
+			OUT("_ASN_ERRLOG(app_errlog, app_key,\n");
+			OUT("\t\"%%s: value too large\", td->name);\n");
 			OUT("return -1;\n");
 			INDENT(-1);
 			OUT("}\n");