thread__fprintf
args->printed += thread__fprintf(thread, args->fp);
size_t thread__fprintf(struct thread *thread, FILE *fp);