Uncrustify write_tsdb