What do these filters say about level to log this entry at? */
| 324 | |
| 325 | /* What do these filters say about level to log this entry at? */ |
| 326 | static bool filter_level(const struct list_head *print_filters, |
| 327 | const char *prefix, |
| 328 | const char *node_id_str, |
| 329 | enum log_level *level) |
| 330 | { |
| 331 | struct print_filter *i; |
| 332 | |
| 333 | list_for_each(print_filters, i, list) { |
| 334 | if (strstr(prefix, i->prefix) || strstr(node_id_str, i->prefix)) { |
| 335 | *level = i->level; |
| 336 | return true; |
| 337 | } |
| 338 | } |
| 339 | return false; |
| 340 | } |
| 341 | |
| 342 | /* What's the lowest filtering which could possibly apply? */ |
| 343 | static void lowest_filter(const struct list_head *print_filters, |