Home
last modified time | relevance | path

Searched refs:fprintf (Results 1 – 25 of 214) sorted by relevance

123456789

/system/core/debuggerd/crasher/
Dcrasher.cpp156 fprintf(nullptr, "oops"); in fprintf_null()
169 fprintf(stderr, "usage: %s KIND\n", getprogname()); in usage()
170 fprintf(stderr, "\n"); in usage()
171 fprintf(stderr, "where KIND is:\n"); in usage()
172 fprintf(stderr, " smash-stack overwrite a -fstack-protector guard\n"); in usage()
173 fprintf(stderr, " stack-overflow recurse until the stack overflows\n"); in usage()
174 fprintf(stderr, " nostack crash with a NULL stack pointer\n"); in usage()
175 fprintf(stderr, "\n"); in usage()
176 fprintf(stderr, " heap-usage cause a libc abort by abusing a heap function\n"); in usage()
177 fprintf(stderr, " call-null cause a crash by calling through a nullptr\n"); in usage()
[all …]
/system/bt/tools/bdtool/
Dbdtool.c73 fprintf(stderr, "Can only select either bond or discoverable, not both\n"); in main()
78 fprintf(stderr, in main()
85 fprintf(stderr, "Must specify one command\n"); in main()
90 fprintf(stderr, "Will be unable to catch signals\n"); in main()
93 fprintf(stdout, "Bringing up bluetooth adapter\n"); in main()
95 fprintf(stderr, "Unable to open Bluetooth HAL.\n"); in main()
101 fprintf(stdout, "BT adapter is up\n"); in main()
103 fprintf(stdout, "Starting to start discovery\n"); in main()
105 fprintf(stdout, "Started discovery for %d seconds\n", timeout_in_sec); in main()
109 fprintf(stdout, "Starting to cancel discovery\n"); in main()
[all …]
Dadapter.c104 fprintf(stdout, "Bond state changed callback addr:%s state:%s\n", in bond_state_changed()
112 fprintf(stdout, "Device found num_properties:%d\n", num_properties); in device_found()
134 fprintf(stdout, "Discover state %s\n", state_name); in discovery_state_changed()
143 fprintf(stdout, "Device found bdaddr:%s num_properties:%d\n", in remote_device_properties()
173 fprintf(stdout, in ssp_request()
177 fprintf(stdout, "Device found:%s %s\n", in ssp_request()
180 fprintf(stdout, "auto-accepting bond\n"); in ssp_request()
195 if (name) fprintf(stdout, " name:%s\n", name->name); in parse_properties()
202 fprintf(stdout, " addr:%s\n", in parse_properties()
211 fprintf(stdout, " uuid:%zd: ", i); in parse_properties()
[all …]
/system/bt/gd/dumpsys/bundler/
Dbundler.cc47 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()
[all …]
/system/security/keystore/
Dkeystore_cli.cpp54 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
60 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
73 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
79 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
92 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
98 fprintf(stderr, "Running as uid %d\n", uid); \
103 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
116 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
123 fprintf(stderr, "Running as uid %d\n", uid); \
127 fprintf(stderr, "Exception code: %d\n", ret.exceptionCode()); \
[all …]
/system/extras/partition_tools/
Dlpmake.cc34 fprintf(stderr, in usage()
159 fprintf(stderr, "Invalid argument to --device-size.\n"); in main()
166 fprintf(stderr, "Invalid argument to --metadata-size.\n"); in main()
172 fprintf(stderr, "Invalid argument to --metadata-slots.\n"); in main()
187 fprintf(stderr, "Invalid argument to --alignment-offset.\n"); in main()
194 fprintf(stderr, "Invalid argument to --alignment.\n"); in main()
204 fprintf(stderr, "Invalid argument to --block-size.\n"); in main()
212 fprintf(stderr, "Expected PARTITION=FILE.\n"); in main()
229 fprintf(stderr, "Block device info has invalid formatting.\n"); in main()
236 fprintf(stderr, "Block device must have a valid size.\n"); in main()
[all …]
/system/extras/tests/storage/
Dopentest.c37 fprintf(stderr, "Usage: opentest <directory> <num_files>\n"); in main()
45 fprintf(stderr, "num_files must be between 1 and 65536\n"); in main()
50 fprintf(stderr, "Cannot stat %s\n", dir); in main()
55 fprintf(stderr, "%s is not a directory!\n", dir); in main()
60 fprintf(stderr, "No access to %s\n", dir); in main()
66 fprintf(stderr, "Unable to malloc array of %d fds\n", nfiles); in main()
71 fprintf(stderr, "Cannot chdir to %s\n", dir); in main()
78 fprintf(stderr, "Unable to raise RLIMIT_NOFILE to %ld\n", rlim.rlim_cur); in main()
86 fprintf(stderr, "Unable to open %d fd\n", i); in main()
/system/core/libsparse/
Dappend2simg.cpp44 fprintf(stderr, "Usage: append2simg <output> <input>\n"); in usage()
72 fprintf(stderr, "Couldn't allocate filename\n"); in main()
78 fprintf(stderr, "Couldn't open output file (%s)\n", strerror(errno)); in main()
84 fprintf(stderr, "Couldn't import output file\n"); in main()
90 fprintf(stderr, "Couldn't open input file (%s)\n", strerror(errno)); in main()
96 fprintf(stderr, "Couldn't get input file length (%s)\n", strerror(errno)); in main()
99 fprintf(stderr, "Input file is not a multiple of the output file's block size"); in main()
106 fprintf(stderr, "Couldn't add input file\n"); in main()
113 fprintf(stderr, "Couldn't open temporary file (%s)\n", strerror(errno)); in main()
119 fprintf(stderr, "Failed to write sparse file\n"); in main()
[all …]
Dsimg2simg.cpp36 fprintf(stderr, "Usage: simg2simg <sparse image file> <sparse_image_file> <max_size>\n"); in usage()
59 fprintf(stderr, "Cannot open input file %s\n", argv[1]); in main()
65 fprintf(stderr, "Failed to import sparse file\n"); in main()
71 fprintf(stderr, "Failed to resparse\n"); in main()
77 fprintf(stderr, "Failed to allocate sparse file array\n"); in main()
83 fprintf(stderr, "Failed to resparse\n"); in main()
90 fprintf(stderr, "Filename too long\n"); in main()
96 fprintf(stderr, "Cannot open output file %s\n", argv[2]); in main()
102 fprintf(stderr, "Failed to write sparse file\n"); in main()
/system/libufdt/tests/src/
Dufdt_gen_test_dts.c77 fprintf(fp, "/dts-v1/;\n"); in output_header()
79 fprintf(fp, "/plugin/;\n"); in output_header()
81 fprintf(fp, "\n"); in output_header()
85 fprintf(fp, "/ {\n"); in output_root_begin()
89 fprintf(fp, "level%d {\n", i); in output_root_begin()
96 fprintf(fp, "};\n"); in output_root_end()
99 fprintf(fp, "};\n\n"); in output_root_end()
105 fprintf(fp, "unused%d {};\n", i); in output_unused_nodes()
111 fprintf(fp, "%s=\"%s\";\n", prop, value); in output_prop_str()
117 fprintf(fp, "node%d: node%d {\n", i, i); in output_nodes()
[all …]
Dextract_dtb.c57 fprintf(stderr, "Bad DTB header.\n"); in find_and_write_dtb()
66 fprintf(stderr, "Wrong size: actual size = %d FDT size = %d(%d)\n", in find_and_write_dtb()
73 fprintf(stderr, "Can not get the root node.\n"); in find_and_write_dtb()
86 fprintf(stderr, "Write file error: %s\n", filename); in find_and_write_dtb()
103 fprintf(stderr, "Can not load file: %s\n", in_filename); in extract_dtbs()
126 fprintf(stderr, "Can not find any DTB.\n"); in extract_dtbs()
134 fprintf(stderr, "Write file error: %s\n", out_image_filename); in extract_dtbs()
149 fprintf(stderr, "Usage: %s <image.gz-dtb_file> <out_dtb_name> (<out_image_name>)\n\n", argv[0]); in main()
150 fprintf(stderr, " Note: If there are more than one DTB, it outputs DTB files named\n" \ in main()
/system/extras/boot_control_copy/
Dboot_control_copy.cpp52 fprintf(stderr, "WARNING: Error getting information about part %s: %s\n", in get_dev_t_for_partition()
68 fprintf(stderr, "WARNING: Error getting information about /system: %s\n", in module_getCurrentSlot()
82 fprintf(stderr, "WARNING: Error determining current slot " in module_getCurrentSlot()
111 fprintf(stderr, "Error reading %zd bytes from source: %s\n", in copy_data()
123 fprintf(stderr, "Error writing %zd bytes to destination: %s\n", in copy_data()
146 fprintf(stderr, "WARNING: Error loading boot-info. Resetting.\n"); in module_setActiveBootSlot()
150 fprintf(stderr, "WARNING: boot-info is invalid. Resetting.\n"); in module_setActiveBootSlot()
162 fprintf(stderr, "Error saving boot-info.\n"); in module_setActiveBootSlot()
170 fprintf(stderr, "Error opening \"%s\" partition.\n", src_name); in module_setActiveBootSlot()
176 fprintf(stderr, "Error opening \"boot\" partition.\n"); in module_setActiveBootSlot()
[all …]
/system/extras/tests/pagingtest/
Dpagingtest.c29 fprintf(stderr, "unable to create temp file: %s\n", strerror(errno)); in create_tmp_file()
35 fprintf(stderr, "unable to open urandom: %s\n", strerror(errno)); in create_tmp_file()
40 fprintf(stderr, "unable to unlink temp file: %s\n", strerror(errno)); in create_tmp_file()
45 fprintf(stderr, "unable to allocate temp file: %s\n", strerror(errno)); in create_tmp_file()
51 fprintf(stderr, "unable to mmap temp file: %s\n", strerror(errno)); in create_tmp_file()
61 fprintf(stderr, "write random data failed: %s\n", strerror(errno)); in create_tmp_file()
70 fprintf(stderr, "madvise DONTNEED failed: %s\n", strerror(errno)); in create_tmp_file()
75 fprintf(stderr, "fsync failed: %s\n", strerror(errno)); in create_tmp_file()
81 fprintf(stderr, "fadvise DONTNEED failed: %s\n", strerror(errno)); in create_tmp_file()
106 fprintf(stderr, "malloc failed\n"); in alloc_mincore_vec()
[all …]
/system/extras/puncture_fs/
Dpuncture_fs.cpp42 fprintf(stderr, in usage()
52 fprintf(stderr, "\nerrno: %d. Failed to get free disk space on %s\n", in get_free_space()
90 fprintf(stderr, "\nerrno: %d. Failed to create %s\n", errno, file_path); in create_unique_file()
97 fprintf(stderr, "\nerrno: %d. Failed to write %lu bytes to %s\n", in create_unique_file()
107 fprintf(stderr, "\nerrno: %d. Failed to write last %lu bytes to %s\n", in create_unique_file()
115 fprintf(stderr, "\nFailed to close %s\n", file_path); in create_unique_file()
133 fprintf(stderr, "\nerrno: %d. Failed to create %s\n", errno, dir); in create_unique_dir()
160 fprintf(stderr, "\n"); in puncture_fs()
162 fprintf(stderr, "\rSTAGE 1/2: %d%% Complete", in puncture_fs()
189 fprintf(stderr, "\rSTAGE 1/2: 100%% Complete\n"); in puncture_fs()
[all …]
/system/libufdt/utils/src/
Dmkdtimg.c55 fprintf(stderr, "Unknown command: %s\n", command); in search_command()
65 fprintf(out_fp, ", "); in print_all_commands()
67 fprintf(out_fp, "%s", info->command); in print_all_commands()
69 fprintf(out_fp, "\n"); in print_all_commands()
73 fprintf(out_fp, " %s <command>\n\n", prog_name); in output_all_usage()
74 fprintf(out_fp, " commands:\n "); in output_all_usage()
76 fprintf(out_fp, "\n"); in output_all_usage()
81 fprintf(out_fp, "\n"); in output_all_usage()
86 fprintf(out_fp, " %s help all\n", prog_name); in handle_usage_help()
87 fprintf(out_fp, " %s help <command>\n\n", prog_name); in handle_usage_help()
[all …]
Dmkdtimg_dump.c47 fprintf(stderr, "Read FDT data error.\n"); in read_fdt_from_image()
63 fprintf(stderr, "Can not create file: %s\n", filename); in write_fdt_to_file()
69 fprintf(stderr, "Write FDT data error.\n"); in write_fdt_to_file()
92 fprintf(out_fp, "%+20s = %d\n", name, fdt32_to_cpu(value)); in output_prop_int()
96 fprintf(out_fp, "%+20s = %d\n", name, value); in output_prop_int_cpu()
100 fprintf(out_fp, "%+20s = %08x\n", name, fdt32_to_cpu(value)); in output_prop_hex()
104 fprintf(out_fp, "%+20s = %s\n", name, value); in output_prop_str()
108 fprintf(out_fp, "dt_table_header:\n"); in output_table_header()
120 fprintf(out_fp, "dt_table_entry[%d]:\n", index); in output_table_entry()
139 fprintf(stderr, "Can not get the root node.\n"); in output_fdt_info()
[all …]
/system/extras/ioshark/
Dcompile_ioshark.c95 fprintf(stderr, "%s in_file out_file\n", progname); in usage()
130 fprintf(stderr, in get_tracetype()
138 fprintf(stderr, in get_tracetype()
145 fprintf(stderr, in get_tracetype()
155 fprintf(stderr, in get_tracetype()
166 fprintf(stderr, in get_tracetype()
183 fprintf(stderr, "%s: Malformed line: %s\n", in get_pathname()
189 fprintf(stderr, "%s: Malformed line: %s\n", in get_pathname()
199 fprintf(stderr, "%s: Malformed line: %s\n", in get_pathname()
209 fprintf(stderr, "%s: Malformed line: %s\n", in get_pathname()
[all …]
Dioshark_bench.c83fprintf(stderr, "%s [-b blockdev_name] [-d preserve_delays] [-n num_iterations] [-t num_threads] -… in usage()
85 fprintf(stderr, "%s -s, -v are mutually exclusive\n", in usage()
178 fprintf(stderr, "%s read error tracefile\n", in create_files()
232 fprintf(stderr, in do_one_io()
246 fprintf(stderr, in do_one_io()
261 fprintf(stderr, in do_one_io()
276 fprintf(stderr, in do_one_io()
291 fprintf(stderr, in do_one_io()
321 fprintf(stderr, in do_one_io()
338 fprintf(stderr, in do_one_io()
[all …]
/system/extras/latencytop/
Dlatencytop.c81 fprintf(stderr, "Option -d expects an argument.\n"); in main()
89 fprintf(stderr, "Option -n expects an argument.\n"); in main()
101 fprintf(stderr, "Option -p expects an argument.\n"); in main()
109 fprintf(stderr, "Option -t expects an argument.\n"); in main()
115 fprintf(stderr, "Invalid argument \"%s\".\n", argv[i]); in main()
121fprintf(stderr, "If you provide a thread ID with -t, you must provide a process ID with -p.\n"); in main()
180 fprintf(stderr, "Could not open global latency stats file: %s\n", strerror(errno)); in read_global_stats()
183 fprintf(f, "erase\n"); in read_global_stats()
189 fprintf(stderr, "Could not open global latency stats file: %s\n", strerror(errno)); in read_global_stats()
210 fprintf(stderr, "Could not open task dir for process %d.\n", pid); in read_process_stats()
[all …]
/system/extras/verity/
Dverity_verifier.cpp37 fprintf(stderr, "Failed to load key from %s\n", path); in load_key()
44 fprintf(stderr, "Failed to parse key!\n"); in load_key()
60 fprintf(stderr, "Couldn't load verity keys\n"); in verify_table()
66 fprintf(stderr, "Couldn't verify table\n"); in verify_table()
84 fprintf(stderr, "failed to open %s: %s\n", argv[1], strerror(errno)); in main()
90 fprintf(stderr, "failed to read file %s\n", argv[1]); in main()
96 fprintf(stderr, "failed to write output file\n"); in main()
109 fprintf(stderr, "failed to get verity metadata\n"); in main()
/system/extras/tests/ext4/
Drand_emmc_perf.c45fprintf(stderr, "Usage: rand_emmc_perf [ -r | -w ] [-o] [-s count] [-f full_stats_filename] <size_… in usage()
67 fprintf(stderr, "Cannot open full stats output file %s, ignoring\n", in print_stats()
78 fprintf(full_stats, "%lld\n", (t.tv_sec * 1000000LL) + t.tv_usec); in print_stats()
119 fprintf(stderr, "Cannot allocate stats_buf\n"); in stats_test()
127 fprintf(stderr, "lseek64 failed\n"); in stats_test()
132 fprintf(stderr, "Short write\n"); in stats_test()
136 fprintf(stderr, "Short read\n"); in stats_test()
157 fprintf(stderr, "lseek64 failed\n"); in perf_test()
161 fprintf(stderr, "Short write\n"); in perf_test()
165 fprintf(stderr, "Short read\n"); in perf_test()
[all …]
/system/bt/test/headless/read/
Dname.cc38 fprintf(stdout, "This test requires at least a single loop"); in Run()
43 fprintf(stdout, "This test requires a single device specified"); in Run()
58 fprintf(stdout, "Failure to start read remote device\n"); in Run()
68 fprintf(stdout, "Name result mac:%s name:%s\n", in Run()
72 fprintf(stdout, "Name Timeout or other failure"); in Run()
75 fprintf(stdout, "Unexpected remote name request failure status:%hd", in Run()
/system/extras/showslab/
Dshowslab.c74 fprintf(stderr, "cannot read from " SLABINFO_FILE "\n"); in get_slabinfo()
79 fprintf(stderr, "unable to parse slabinfo version!\n"); in get_slabinfo()
84 fprintf(stderr, "we only support slabinfo 2.0 and 2.1!\n"); in get_slabinfo()
116 fprintf(stderr, "unrecognizable data in slabinfo!\n"); in get_slabinfo()
291 fprintf(stderr, "usage: %s [options]\n\n", argv[0]); in main()
292 fprintf(stderr, "options:\n"); in main()
293 fprintf(stderr, " -s S specify sort criteria S\n"); in main()
294 fprintf(stderr, " -h display this help\n\n"); in main()
295 fprintf(stderr, "Valid sort criteria:\n"); in main()
296 fprintf(stderr, " a: number of Active objects\n"); in main()
[all …]
/system/extras/memory_replay/
Dmain.cpp148 fprintf(stderr, "Only two arguments are expected.\n"); in main()
150 fprintf(stderr, "Requires at least one argument.\n"); in main()
152 fprintf(stderr, "Usage: %s MEMORY_LOG_FILE [MAX_THREADS]\n", basename(argv[0])); in main()
153 fprintf(stderr, " MEMORY_LOG_FILE\n"); in main()
154 fprintf(stderr, " This can either be a text file or a zipped text file.\n"); in main()
155 fprintf(stderr, " MAX_THREADs\n"); in main()
156 fprintf(stderr, " The maximum number of threads in the trace. The default is %zu.\n", in main()
158 fprintf(stderr, " This pre-allocates the memory for thread data to avoid allocating\n"); in main()
159 fprintf(stderr, " while the trace is being replayed.\n"); in main()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c97 fprintf (stderr, usage, prog); in print_usage_and_exit()
99 fprintf (stderr, "%s", usage_long); in print_usage_and_exit()
167 fprintf(stderr, "Failed to connect to '%s' service\n", in connect_test()
172 fprintf(stderr, "Failed to connect to '%s' service\n", in connect_test()
203 fprintf(stderr, "succeeded to connect to '%s' service\n", in connect_foo()
229 fprintf(stderr, "Failed to connect to '%s' service\n", in closer1_test()
263 fprintf(stderr, "connected to '%s' service\n", "closer2"); in closer2_test()
292 fprintf(stderr, "fd[%d]: failed to connect to '%s' service\n", j, "closer3"); in closer3_test()
358 fprintf(stderr, "Failed to connect to service\n"); in echo_test()
384 fprintf(stderr, "data truncated (%zu vs. %zu)\n", in echo_test()
[all …]

123456789