| 612 | } |
| 613 | |
| 614 | static void show_log_level(char buf[OPT_SHOW_LEN], const struct log *log) |
| 615 | { |
| 616 | enum log_level l; |
| 617 | |
| 618 | if (log->lr->default_print_level) |
| 619 | l = *log->lr->default_print_level; |
| 620 | else |
| 621 | l = DEFAULT_LOGLEVEL; |
| 622 | strncpy(buf, log_level_name(l), OPT_SHOW_LEN - 1); |
| 623 | buf[OPT_SHOW_LEN - 1] = '\0'; |
| 624 | } |
| 625 | |
| 626 | static char *arg_log_prefix(const char *arg, struct log_book *log_book) |
| 627 | { |
nothing calls this directly
no test coverage detected