Home | History | Annotate | Download | only in updater

Lines Matching refs:log

197         // send a copy of the log through to the next invocation of
198 // recovery. We write the log as late as possible in order to
202 LOGE("Can't write log block to %s\n(%s)\n",
273 LOGE("writing log\n");
283 char* log = malloc(erase_size);
286 // beginning of the log, but that's okay because we want
289 memcpy(log, LOG_MAGIC, LOG_MAGIC_SIZE);
290 size_t read = fread(log+sizeof(size_t)+LOG_MAGIC_SIZE,
292 LOGI("read %d bytes from log\n", (int)read);
293 *(size_t *)(log + LOG_MAGIC_SIZE) = read;
295 if (mtd_write_data(write, log, erase_size) != erase_size) {
296 LOGE("failed to store log in cache partition\n(%s)\n",
300 free(log);