flag2str
const char *flag2str(uint8_t flag);
fprintf(stream, "%s", flag2str(flags));
flag2str(set));
printf(" [label=\"%s\"]", flag2str(flag));