fmt_flags
fmt_flags(uint32_t flags, int sum)
fmt_flags(uint64_t val, const char *bits, char *buf, size_t blen)