HomeSort by relevance Sort by last modified time
    Searched refs:FAILIF (Results 1 - 25 of 35) sorted by null

1 2

  /system/bluetooth/brfpatch/
brfpatch.c 24 #define FAILIF(x, args...) do { \
78 FAILIF(strncmp(buf, "Send_", 5) != 0, "Not expecting: %s\n", buffer);
83 FAILIF(advance(&buf), "Could not find opcode in: %s\n", buffer);
84 FAILIF(sscanf(buf, "0x%04x\n", &opcode) != 1,
96 FAILIF(dp > data + sizeof(data),
98 FAILIF(sscanf(buf, "%02x", (unsigned int *)dp) != 1,
108 FAILIF(*buf != 'x', "Error parsing: %s\n", buffer);
119 FAILIF(sscanf(buf, "%02x", (unsigned int *)dp) != 1,
125 FAILIF(sscanf(buf, "%04x", (unsigned int *)dp) != 1,
131 FAILIF(sscanf(buf, "%06x", (unsigned int *)dp) != 1
    [all...]
  /build/tools/apriori/
prelink_info.c 23 FAILIF(sizeof(prelink_info_t) != 8, "Unexpected sizeof(prelink_info_t) == %d!\n", sizeof(prelink_info_t));
38 FAILIF(sizeof(prelink_info_t) != 8, "Unexpected sizeof(prelink_info_t) == %d!\n", sizeof(prelink_info_t));
40 FAILIF(fd < 0, "open(%s, O_RDONLY): %s (%d)!\n",
48 FAILIF(sz == (off_t)-1,
54 FAILIF(num_read < 0,
57 FAILIF(num_read != sizeof(info),
67 FAILIF(close(fd) < 0, "close(%d): %s (%d)!\n", fd, strerror(errno), errno);
73 FAILIF(sizeof(prelink_info_t) != 8, "Unexpected sizeof(prelink_info_t) == %d!\n", sizeof(prelink_info_t));
75 FAILIF(fd < 0,
80 FAILIF(sz == (off_t)-1,
    [all...]
debug.h 10 #define FAILIF(cond, msg...) do { \
30 #define FAILIF(cond, msg...) do { \
43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
47 FAILIF(NULL == m, "malloc(%d) failed!\n", size);
53 FAILIF(NULL == m, "calloc(%d, %d) failed!\n", num_entries, entry_size);
59 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size);
prelinkmap.c 40 FAILIF(fp == NULL, "Error opening file %s: %s (%d)\n",
84 FAILIF(!me, "Nonexistent alias %s -> %s\n", buf, x);
93 FAILIF((n < PRELINK_MIN) || (n > PRELINK_MAX),
98 FAILIF(me == NULL, "Out of memory parsing %s\n", file);
100 FAILIF(last <= n, "The prelink map is not in descending order "
110 FAILIF(me->num_names >= MAX_ALIASES,
140 FAILIF(fsize > slot,
151 FAILIF(1, "library '%s' not in prelink map\n", name);
168 FAILIF(1, "library '%s' not in prelink map\n", lookup_name);
main.c 43 FAILIF(s_addr_increment < fsize,
47 FAILIF(s_next_link_addr % 4096,
146 FAILIF(stat(output, &output_st) < 0 && errno != ENOENT,
153 FAILIF(!errno && !S_ISREG(output_st.st_mode),
158 FAILIF(errno == ENOENT,
162 FAILIF(!S_ISDIR(output_st.st_mode),
171 FAILIF(1, "There are command-line-option errors.\n");
175 FAILIF (elf_version(EV_CURRENT) == EV_NONE, "libelf is out of date!\n");
source.c 9 FAILIF(NULL == range,
cmdline.c 128 FAILIF(1 != sscanf(optarg+2, "%x", val), \
131 FAILIF(1 != sscanf(optarg, "%d", val), \
181 FAILIF(1, "Unknown option");
  /build/tools/soslim/
prelink_info.c 23 FAILIF(sizeof(prelink_info_t) != 8, "Unexpected sizeof(prelink_info_t) == %zd!\n", sizeof(prelink_info_t));
38 FAILIF(sizeof(prelink_info_t) != 8, "Unexpected sizeof(prelink_info_t) == %zd!\n", sizeof(prelink_info_t));
40 FAILIF(fd < 0, "open(%s, O_RDONLY): %s (%d)!\n",
51 FAILIF(sz == (off_t)-1,
57 FAILIF(num_read < 0,
60 FAILIF((size_t)num_read != sizeof(info),
70 FAILIF(close(fd) < 0, "close(%d): %s (%d)!\n", fd, strerror(errno), errno);
76 FAILIF(sizeof(prelink_info_t) != 8, "Unexpected sizeof(prelink_info_t) == %zd!\n", sizeof(prelink_info_t));
78 FAILIF(fd < 0,
83 FAILIF(sz == (off_t)-1,
    [all...]
debug.h 10 #define FAILIF(cond, msg...) do { \
30 #define FAILIF(cond, msg...) do { \
43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
47 FAILIF(NULL == m, "malloc(%d) failed!\n", size);
53 FAILIF(NULL == m, "calloc(%d, %d) failed!\n", num_entries, entry_size);
59 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size);
main.c 67 FAILIF(1, "You must specify an input ELF file!\n");
69 FAILIF(print_symtab && (outfile || symsfile_name || shady),
72 FAILIF(dry_run && outfile,
76 FAILIF (elf_version(EV_CURRENT) == EV_NONE, "libelf is out of date!\n");
85 FAILIF(elf_fd < 0, "open(%s): %s (%d)\n",
95 FAILIF(elf_kind(elf) != ELF_K_ELF,
105 FAILIF(elf_hdr.e_type != ET_DYN &&
116 FAILIF(close(elf_fd) < 0, "Could not close file %s: %s (%d)!\n",
127 FAILIF(elf_fd < 0, "open(%s): %s (%d)\n",
138 FAILIF(elf_kind(elf) != ELF_K_ELF
    [all...]
symfilter.c 27 FAILIF(NULL == name,
36 FAILIF(filter->fd < 0, "open(%s): %s (%d)\n",
50 FAILIF(MAP_FAILED == filter->mmap,
66 FAILIF(NULL == filter->symtab.sect,
70 FAILIF(NULL == filter->hash.sect,
219 FAILIF(filter->hash.sect != NULL,
240 FAILIF(filter->symtab.sect != NULL,
  /build/tools/isprelinked/
prelink_info.c 23 FAILIF(sizeof(prelink_info_t) != 8, "Unexpected sizeof(prelink_info_t) == %d!\n", sizeof(prelink_info_t));
38 FAILIF(sizeof(prelink_info_t) != 8, "Unexpected sizeof(prelink_info_t) == %d!\n", sizeof(prelink_info_t));
40 FAILIF(fd < 0, "open(%s, O_RDONLY): %s (%d)!\n",
48 FAILIF(sz == (off_t)-1,
54 FAILIF(num_read < 0,
57 FAILIF(num_read != sizeof(info),
67 FAILIF(close(fd) < 0, "close(%d): %s (%d)!\n", fd, strerror(errno), errno);
debug.h 10 #define FAILIF(cond, msg...) do { \
30 #define FAILIF(cond, msg...) do { \
43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
47 FAILIF(NULL == m, "malloc(%d) failed!\n", size);
53 FAILIF(NULL == m, "calloc(%d, %d) failed!\n", num_entries, entry_size);
59 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size);
isprelinked.c 45 FAILIF (elf_version(EV_CURRENT) == EV_NONE, "libelf is out of date!\n");
60 FAILIF(fd < 0, "open(%d): %s (%d).\n",
  /build/tools/iself/
iself.c 19 FAILIF(argc != 1, "Expecting a file name!\n");
23 FAILIF(fd < 0, "Error opening %s for reading: %s (%d)!\n",
26 FAILIF(4 != read(fd, magic, 4),
debug.h 12 #define FAILIF(cond, msg...) do { \
32 #define FAILIF(cond, msg...) do { \
45 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
49 FAILIF(NULL == m, "malloc(%d) failed!\n", size);
55 FAILIF(NULL == m, "calloc(%d, %d) failed!\n", num_entries, entry_size);
61 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size);
  /build/tools/lsd/
debug.h 10 #define FAILIF(cond, msg...) do { \
30 #define FAILIF(cond, msg...) do { \
43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
48 FAILIF(NULL == m, "malloc(%d) failed!\n", size);
55 FAILIF(NULL == m, "calloc(%d, %d) failed!\n", num_entries, entry_size);
62 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size);
main.c 52 FAILIF(1, "You must specify at least one input ELF file!\n");
56 FAILIF (elf_version(EV_CURRENT) == EV_NONE, "libelf is out of date!\n");
  /development/tools/yuv420sp2rgb/
debug.h 12 #define FAILIF(cond, msg...) do { \
32 #define FAILIF(cond, msg...) do { \
45 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
49 FAILIF(NULL == m, "malloc(%d) failed!\n", size);
55 FAILIF(NULL == m, "calloc(%d, %d) failed!\n", num_entries, entry_size);
61 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size);
cmdline.c 98 FAILIF(1 != sscanf(optarg+2, "%x", val), \
101 FAILIF(1 != sscanf(optarg, "%d", val), \
142 FAILIF(1, "Unknown option");
yuv420sp2rgb.c 154 FAILIF(1, "Unexpected roation value %d!\n", ctx->rotate);
159 FAILIF(offset < 0, "point (%d, %d) generates a negative offset.\n", ctx->i, ctx->j);
160 FAILIF(offset + bpp > ctx->size, "point (%d, %d) at offset %d exceeds the size %d of the buffer.\n",
231 FAILIF(ifd < 0, "open(%s) failed: %s (%d)\n",
236 FAILIF(ofd < 0, "open(%s) failed: %s (%d)\n",
241 FAILIF(in == MAP_FAILED, "could not mmap input file: %s (%d)\n",
245 FAILIF(ftruncate(ofd, outsize) < 0,
251 FAILIF(out == MAP_FAILED, "could not mmap output file: %s (%d)\n",
255 FAILIF(write(ofd, header, header_size) != header_size,
300 FAILIF(rotate % 90, "Rotation angle must be a multiple of 90 degrees!\n")
    [all...]
  /external/elfcopy/
debug.h 10 #define FAILIF(cond, msg...) do { \
30 #define FAILIF(cond, msg...) do { \
43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
47 FAILIF(NULL == m, "malloc(%d) failed!\n", size);
53 FAILIF(NULL == m, "calloc(%d, %d) failed!\n", num_entries, entry_size);
59 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size);
  /external/bluetooth/bluez/tools/
hciattach_tialt.c 51 #define FAILIF(x, args...) do { \
69 FAILIF(read_hci_event(fd, (unsigned char *)&resp, sizeof(resp)) < 0,
73 FAILIF(resp.uart_prefix != HCI_EVENT_PKT,
77 FAILIF(resp.hci_hdr.evt != EVT_CMD_COMPLETE, /* event must be event-complete */
81 FAILIF(resp.hci_hdr.plen < 4, /* plen >= 4 for EVT_CMD_COMPLETE */
86 FAILIF(resp.cmd_complete.opcode != (uint16_t)opcode,
138 FAILIF(fw < 0,
152 FAILIF(nr != sizeof(cmdp), "Could not read H4 + HCI header!\n");
153 FAILIF(*cmdp != HCI_COMMAND_PKT, "Command is not an H4 command packet!\n");
155 FAILIF(read(fw, data, cmd->plen) != cmd->plen
    [all...]
  /hardware/qcom/gps/loc_api/libloc_api-rpc/inc/
debug.h 49 #define FAILIF(cond, msg...) do { \
  /hardware/msm7k/librpc/
debug.h 58 #define FAILIF(cond, msg...) do { \

Completed in 138 milliseconds

1 2