Lines Matching refs:buf
37 unsigned char buf[LOGGER_ENTRY_MAX_LEN + 1] __attribute__((aligned(4)));
150 void printBinary(struct logger_entry *buf)
152 size_t size = sizeof(logger_entry) + buf->len;
156 ret = write(g_outFD, buf, size);
160 static void processBuffer(log_device_t* dev, struct logger_entry *buf)
168 err = android_log_processBinaryLogBuffer(buf, &entry, g_eventTagMap,
173 err = android_log_processLogBuffer(buf, &entry);
223 char buf[1024];
224 snprintf(buf, sizeof(buf), "--------- beginning of %s\n", dev->device);
225 if (write(g_outFD, buf, strlen(buf)) < 0) {
282 ret = read(dev->fd, entry->buf, LOGGER_ENTRY_MAX_LEN);
515 char* buf = (char*) malloc(strlen(LOG_FILE_DIR) + strlen(optarg) + 1);
516 strcpy(buf, LOG_FILE_DIR);
517 strcat(buf, optarg);
529 dev->next = new log_device_t(buf, binary, optarg[0]);
531 devices = new log_device_t(buf, binary, optarg[0]);