fifolog_write_record
int fifolog_write_record(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len);
if (!fifolog_write_record(f, id, now, ptr, len)) {
if (!fifolog_write_record(f, id, now, ptr, len))
while (!fifolog_write_record(f, id, now, p, l))