| 59 | #include "common.h" |
| 60 | |
| 61 | const char * |
| 62 | fmt_flags(const struct bits *p, int f) |
| 63 | { |
| 64 | static char name[33]; |
| 65 | char *flags; |
| 66 | |
| 67 | for (flags = name; p->b_mask; p++) |
| 68 | if (p->b_mask & f) |
| 69 | *flags++ = p->b_val; |
| 70 | *flags = '\0'; |
| 71 | return (name); |
| 72 | } |
| 73 | |
| 74 | void |
| 75 | print_flags_generic(int flags, const struct bits *pbits, const char *format, |
no outgoing calls
no test coverage detected