Lines Matching refs:fprintf

534 			fprintf(stderr, "%s:%u: Unknown character in grammar: '%c'\n",
585 fprintf(stderr, "Format: %s [-v] [-d] <grammar-file> <c-file> <hdr-file>\n",
621 fprintf(stderr, "%s: Short read\n", filename);
758 fprintf(stderr, "%s: No defined types\n", filename);
823 fprintf(stderr, "%s:%d: Parse error at token '%s'\n",
891 fprintf(stderr, "%s:%d: Unrecognised tag class token '%s'\n",
899 fprintf(stderr, "%s:%d: Missing tag number '%s'\n",
914 fprintf(stderr, "%s:%d: Missing closing square bracket '%s'\n",
1015 fprintf(stderr, "%s:%d: Type '%s' undefined\n",
1065 fprintf(stderr, "%s:%d: Token '%s' does not introduce a type\n",
1083 fprintf(stderr, "%s:%d: Token '%s' is not an action function name\n",
1124 fprintf(stderr, "%s:%d: Missing close action, got '%s'\n",
1135 fprintf(stderr, "%s:%d: Unexpected token '%s'\n",
1140 fprintf(stderr, "%s: Unexpectedly hit EOF\n", filename);
1154 fprintf(stderr, "%s:%d: Expected compound to start with brace not '%s'\n",
1163 fprintf(stderr, "%s:%d: Empty compound\n",
1196 fprintf(stderr, "%s:%d: Expected compound closure, got '%s'\n",
1206 fprintf(stderr, "%s: Unexpectedly hit EOF\n", filename);
1269 fprintf(out, "\t[%4d] =%*s", nr_entries, render_depth, "");
1299 fprintf(hdr, "/*\n");
1300 fprintf(hdr, " * Automatically generated by asn1_compiler. Do not edit\n");
1301 fprintf(hdr, " *\n");
1302 fprintf(hdr, " * ASN.1 parser for %s\n", grammar_name);
1303 fprintf(hdr, " */\n");
1304 fprintf(hdr, "#include <linux/asn1_decoder.h>\n");
1305 fprintf(hdr, "\n");
1306 fprintf(hdr, "extern const struct asn1_decoder %s_decoder;\n", grammar_name);
1312 fprintf(out, "/*\n");
1313 fprintf(out, " * Automatically generated by asn1_compiler. Do not edit\n");
1314 fprintf(out, " *\n");
1315 fprintf(out, " * ASN.1 parser for %s\n", grammar_name);
1316 fprintf(out, " */\n");
1317 fprintf(out, "#include <linux/asn1_ber_bytecode.h>\n");
1318 fprintf(out, "#include \"%s.asn1.h\"\n", grammar_name);
1319 fprintf(out, "\n");
1326 fprintf(hdr, "\n");
1330 fprintf(hdr,
1335 fprintf(hdr, "\n");
1337 fprintf(out, "enum %s_actions {\n", grammar_name);
1339 fprintf(out, "\tACT_%s = %u,\n",
1341 fprintf(out, "\tNR__%s_actions = %u\n", grammar_name, nr_actions);
1342 fprintf(out, "};\n");
1344 fprintf(out, "\n");
1345 fprintf(out, "static const asn1_action_t %s_action_table[NR__%s_actions] = {\n",
1348 fprintf(out, "\t[%4u] = %s,\n", action->index, action->name);
1349 fprintf(out, "};\n");
1369 fprintf(out, "\n");
1370 fprintf(out, "static const unsigned char %s_machine[] = {\n",
1379 fprintf(out, "};\n");
1381 fprintf(out, "\n");
1382 fprintf(out, "const struct asn1_decoder %s_decoder = {\n", grammar_name);
1383 fprintf(out, "\t.machine = %s_machine,\n", grammar_name);
1384 fprintf(out, "\t.machlen = sizeof(%s_machine),\n", grammar_name);
1385 fprintf(out, "\t.actions = %s_action_table,\n", grammar_name);
1386 fprintf(out, "};\n");
1593 fprintf(stderr, "The ASN.1 SET type is not currently supported.\n");