Lines Matching refs:fprintf

47     fprintf(stderr, "Unable to open binary flatbuffer schema file:%s\n", filename);  in LoadBinarySchema()
89 fprintf(stderr, "Unable to load binary schema from filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
94 fprintf(stderr, "Failed verification on binary schema filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
100fprintf(stderr, "Unable to find root table for binary flatbuffer schema:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
110 fprintf(stdout, "Bundled binary schema file:%s\n", schema->root_table()->name()->c_str()); in CreateBinarySchemaBundle()
145 fprintf( in WriteHeaderFile()
152 …namespaces.begin(), namespaces.end(), [fp](const std::string& s) { fprintf(fp, "namespace %s {\n",… in WriteHeaderFile()
153 fprintf( in WriteHeaderFile()
159 fprintf(fp, "} // namespace %s\n", s.c_str()); in WriteHeaderFile()
161 fprintf( in WriteHeaderFile()
168 fprintf(fp, " 0x%02x", data[i]); in WriteHeaderFile()
170 fprintf(fp, ","); in WriteHeaderFile()
173 fprintf(fp, "\n"); in WriteHeaderFile()
176 fprintf(fp, " };\n"); in WriteHeaderFile()
177 fprintf( in WriteHeaderFile()
184 fprintf(fp, "} // namespace\n"); in WriteHeaderFile()
185 fprintf(fp, "const unsigned char* %s::data = %sdata_;\n", opts.ns_name, namespace_prefix.c_str()); in WriteHeaderFile()
186 fprintf(fp, "const size_t %s::data_size = %zu;\n", opts.ns_name, data_len); in WriteHeaderFile()
187 fprintf( in WriteHeaderFile()
200 fprintf(stderr, "Unable to load schema data file:%s\n", filename); in ReadBundledSchema()
207 fprintf(stdout, "Bundle schema title:%s\n", bundle_schema->title()->c_str()); in ReadBundledSchema()
208 fprintf(stdout, "Bundle schema root_name:%s\n", bundle_schema->root_name()->c_str()); in ReadBundledSchema()
211 fprintf(stdout, " %d name:%s schema:%s\n", cnt, it->name()->c_str(), "schema"); in ReadBundledSchema()
222 fprintf(stderr, "Must specify the name of the main root name for this bundle\n"); in WriteBundledSchema()
231 fprintf(stderr, "No bfbs files are specified to bundle\n"); in WriteBundledSchema()
240 fprintf(stderr, "Unable to bundle schema bfbs files\n"); in WriteBundledSchema()
245 fprintf(stderr, "The main root name must match one of the bundled schema names\n"); in WriteBundledSchema()
246 fprintf(stderr, " main root name:%s\n", main_root_name); in WriteBundledSchema()
248 fprintf(stderr, " bundled schema name:%s\n", name.c_str()); in WriteBundledSchema()
262 fprintf(stderr, "Unable to save file:%s\n", final_filename.c_str()); in WriteBundledSchema()
270 fprintf(stdout, "Unable to open for writing header file:%s\n", header.c_str()); in WriteBundledSchema()
279 fprintf( in Usage()
284 fprintf(stderr, " -r|-w : Read or write a dumpsys file\n"); in Usage()
285fprintf(stderr, " -f : Filename bundled schema to read or write (default:%s)\n", kDefaultBundleDat… in Usage()
286 fprintf(stderr, " -g : Generated file output path\n"); in Usage()
287 fprintf(stderr, " -n : Namespace to embed binary output bundle data source\n"); in Usage()
288 fprintf(stderr, " -m : Name of the main root of this bundle\n"); in Usage()
289 fprintf(stderr, " -v : Verbose printing mode\n"); in Usage()