Change-Id: I6c11c85be581c09ce9611421909f293f5e2c924a
#define BUFF_IN_LEN 4096
#define BUFF_OUT_LEN 4096
#define SSINT_LEN 8
+#define BLOCK_COUNT_REPORT 5000
const char SSDIFF_MAGIC[] = "SSDIFF40";
uint64_t total_write = 0;
+ uint64_t blocks = 0;
while (total_write < data.dest_len) {
/*
* Make sure we can read the block header
write += chunk_size;
}
total_write += write;
+
+ blocks++;
+ if (blocks % BLOCK_COUNT_REPORT == 0) {
+ printf("Number of processed patch blocks: %lld\n", blocks);
+ }
}
result = PF_OK;
exit:
+ printf("Total processed blocks: %lld\n", blocks);
free_data(&data);
return result;
}