Home
last modified time | relevance | path

Searched refs:die (Results 1 – 7 of 7) sorted by relevance

/system/extras/cpustats/
Dcpustats.c50 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro
110 if (!old_cpus) die("Could not allocate struct cpu_info\n"); in main()
112 if (!new_cpus) die("Could not allocate struct cpu_info\n"); in main()
117 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
119 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
129 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
131 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
179 die("present cpus != online cpus\n"); in get_cpu_count()
193 if (!file) die("Could not open %s\n", filename); in get_cpu_count_from_file()
194 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename); in get_cpu_count_from_file()
[all …]
/system/core/cpio/
Dmkbootfs.c26 void die(const char *why, ...) in die() function
126 if(strlen(out) != (unsigned int)olen) die("ACK!"); in _eject()
169 if(d == 0) die("cannot open directory '%s'", in); in _archive_dir()
239 if(lstat(in, &s)) die("could not stat '%s'\n", in); in _archive()
246 if(fd < 0) die("cannot open '%s' for read", in); in _archive()
249 if(tmp == 0) die("cannot allocate %d bytes", s.st_size); in _archive()
252 die("cannot read %d bytes", s.st_size); in _archive()
266 if(size < 0) die("cannot read symlink '%s'", in); in _archive()
269 die("Unknown '%s' (mode %d)?\n", in, s.st_mode); in _archive()
294 if (f == NULL) die("failed to open canned file"); in read_canned_config()
[all …]
/system/core/fastboot/
Dfastboot.cpp134 die("neither -p product specified nor ANDROID_PRODUCT_OUT set"); in find_item()
555 die("out of memory"); in setup_requirements()
577 die("cannot sparse read file\n"); in load_sparse_files()
582 die("Failed to resparse\n"); in load_sparse_files()
587 die("Failed to allocate sparse file array\n"); in load_sparse_files()
592 die("Failed to resparse\n"); in load_sparse_files()
716 die("unknown buffer type: %d", buf->type); in flash_buf()
725 die("cannot load '%s'", fname); in do_flash()
749 die("failed to open zip file '%s': %s", filename, ErrorCodeString(error)); in do_update()
756 die("update package '%s' has no android-info.txt", filename); in do_update()
[all …]
Dutil.c56 if (s == 0) die("out of memory"); in mkmsg()
60 void die(const char *fmt, ...) in die() function
Dengine.c143 if (a == 0) die("out of memory"); in queue_action()
151 die("Command length (%d) exceeds maximum size (%d)", cmdsize, sizeof(a->cmd)); in queue_action()
288 if (a->data == 0) die("out of memory"); in fb_queue_require()
306 if (a->data == 0) die("out of memory"); in fb_queue_display()
407 die("bogus action"); in fb_execute_queue()
Dfastboot.h72 __attribute__((__noreturn__)) void die(const char *fmt, ...);
/system/core/toolbox/
Dtop.c80 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro
204 if (!proc) die("Could not allocate struct process_info.\n"); in alloc_proc()
234 if (!proc_dir) die("Could not open /proc.\n"); in read_procs()
240 if (!file) die("Could not open /proc/stat.\n"); in read_procs()
364 if (!new_procs) die("Could not expand procs array.\n"); in add_proc()