| 577 | } |
| 578 | |
| 579 | static char *opt_set_level(const char *arg, enum log_level *level) |
| 580 | { |
| 581 | if (streq(arg, "none")) |
| 582 | *level = LOG_LEVEL_MAX + 1; |
| 583 | else if (!log_level_parse(arg, strlen(arg), level)) |
| 584 | return "Invalid level"; |
| 585 | return NULL; |
| 586 | } |
| 587 | |
| 588 | static bool opt_show_level(char *buf, size_t len, const enum log_level *level) |
| 589 | { |
nothing calls this directly
no test coverage detected