Commit d83fae9d authored by Lev Walkin's avatar Lev Walkin

ASN_ERRLOG api changed

parent e730f2b8
...@@ -1408,7 +1408,8 @@ emit_constraint_checking_code(arg_t *arg) { ...@@ -1408,7 +1408,8 @@ emit_constraint_checking_code(arg_t *arg) {
OUT("if(!sptr) {\n"); OUT("if(!sptr) {\n");
INDENT(+1); 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"); OUT("return -1;\n");
INDENT(-1); INDENT(-1);
OUT("}\n"); OUT("}\n");
...@@ -1426,7 +1427,8 @@ emit_constraint_checking_code(arg_t *arg) { ...@@ -1426,7 +1427,8 @@ emit_constraint_checking_code(arg_t *arg) {
INDENTED(OUT("/* Constraint check succeeded */\n")); INDENTED(OUT("/* Constraint check succeeded */\n"));
OUT("} else {\n"); OUT("} else {\n");
INDENT(+1); 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"); OUT("return -1;\n");
INDENT(-1); INDENT(-1);
OUT("}\n"); OUT("}\n");
...@@ -1979,8 +1981,8 @@ emit_value_determination_code(arg_t *arg) { ...@@ -1979,8 +1981,8 @@ emit_value_determination_code(arg_t *arg) {
} else { } else {
OUT("if(asn1_INTEGER2long(st, &value)) {\n"); OUT("if(asn1_INTEGER2long(st, &value)) {\n");
INDENT(+1); INDENT(+1);
OUT("_ASN_ERRLOG(\"%%s: value too large\", " OUT("_ASN_ERRLOG(app_errlog, app_key,\n");
"td->name);\n"); OUT("\t\"%%s: value too large\", td->name);\n");
OUT("return -1;\n"); OUT("return -1;\n");
INDENT(-1); INDENT(-1);
OUT("}\n"); OUT("}\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment