tot_size cannot ever be equal to 0 because of it initialization:
tot_size = sizeof(struct log_global_header);
long long unsigned int should be uint64_t, to make every arch happy with PRIu64
Simplify el_display.c, getting rid of useless "write"